learndash_element_lazy_load_per_page

apply_filters( 'learndash_element_lazy_load_per_page',  int $lazy_load_per_page,  string $context )

Filters value of lazy load per page for admin settings.


Description #


Parameters #

$lazy_load_per_page

(int) The per page value for lazy load.

$context

(string) The context for admin settings.


Source #

File: includes/class-ld-lms.php


Examples #

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

		// Always return $lazy_load_per_page.
		return $lazy_load_per_page;
	},
	10,
	2
);