Browse: Home / Hooks /

learndash_element_lazy_load_admin

apply_filters( 'learndash_element_lazy_load_admin',  boolean $lazy_load )

Filters whether to lazy load admin settings or not.


Description #


Parameters #

$lazy_load

(boolean) Whether to lazy load or not.


Source #

File: includes/class-ld-lms.php


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

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

		// Always return $lazy_load.
		return $lazy_load;
	}
);