Browse: Home / Hooks /


apply_filters( "learndash_element_lazy_load_admin_{$_GET[‘post_type’]}_filters",  boolean $lazy_load )

Filters whether to lazy load admin settings for a post type or not.

Description #

The dynamic portion of the hook $_GET['post_type'] refers to the post type slug.

Parameters #


(boolean) Whether to lazy load or not.

Source #

File: includes/admin/ld-admin.php

Examples #

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

 * Example usage for learndash_element_lazy_load_admin_{$_GET['post_type']}_filters filter.
	function( $lazy_load ) {
		// May add any custom logic using $lazy_load.

		// Always return $lazy_load.
		return $lazy_load;