learndash_course_info_per_page

apply_filters( 'learndash_course_info_per_page',  int $info_per_page,  string $context,  int $user_id,  array $atts )

Filters value of course information per page.


Description #


Parameters #

$info_per_page

(int) Course info per page.

$context

(string) The context of course info.

$user_id

(int) User ID.

$atts

(array) An array of shortcode attributes.


Source #

File: includes/class-ld-lms.php


Examples #

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

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