learndash_element_lazy_load_admin_{$_GET[‘post_type’]}_filters

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 #

$lazy_load

(boolean) Whether to lazy load or not.


Source #

File: includes/admin/ld-admin.php


Examples #

 <?php
/**
 * Example usage for learndash_element_lazy_load_admin_{$_GET['post_type']}_filters filter.
 */
add_filter(
	'learndash_element_lazy_load_admin_sfwd-topic_filters',
	function( $lazy_load ) {
		// May add any custom logic using $lazy_load.

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