learndash_quiz_info_per_page

apply_filters( 'learndash_quiz_info_per_page',  int $info_per_page,  string $context,  int $user_id )

Filters value of quiz information per page.


Description #


Parameters #

$info_per_page

(int) Quiz info per page.

$context

(string) The context of course info.

$user_id

(int) User ID.


Source #

File: includes/class-ld-lms.php


Examples #

 <?php
/**
 * Example usage for learndash_quiz_info_per_page filter.
 */
add_filter(
	'learndash_quiz_info_per_page',
	function( $info_per_page, $context, $user_id ) {
		// May add any custom logic using $info_per_page, $context, $user_id.

		// Always return $info_per_page.
		return $info_per_page;
	},
	10,
	3
);