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.
Contents
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 #
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_{$_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; } );