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.
Contents
Description #
Parameters #
- $lazy_load_per_page
-
(int) The per page value for lazy load.
- $context
-
(string) The context for admin settings.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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 );