apply_filters( 'learndash_quiz_default_viewPofileStatistics', boolean $view_profile_statistics )
Filters default value of whether to view profile statistics for a quiz or not.
Description #
Parameters #
- $view_profile_statistics
-
(boolean) Whether to view quiz profile statistics or not.
Source #
File: includes/lib/wp-pro-quiz/lib/model/WpProQuiz_Model_Quiz.php
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash_quiz_default_viewPofileStatistics filter.
*/
add_filter(
'learndash_quiz_default_viewPofileStatistics',
function( $view_profile_statistics ) {
// May add any custom logic using $view_profile_statistics.
// Always return $view_profile_statistics.
return $view_profile_statistics;
}
);