mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-02 12:02:25 +08:00
12 lines
369 B
Text
12 lines
369 B
Text
|
|
add_filter('sensei_check_for_activity', 'sensei_allow_teachers_to_grade_all_quizzes', 5 );
|
|
|
|
function sensei_allow_teachers_to_grade_all_quizzes( $args ){
|
|
|
|
// remove the limit
|
|
remove_filter( 'sensei_check_for_activity' , array( Sensei()->teacher, 'filter_grading_activity_queries') );
|
|
|
|
// make sure to the return the expected arguments
|
|
return $args;
|
|
|
|
}
|