• Resolved Techno Experts

    (@technoexperts)


    Here is my code: example add_filter( ‘pum_popup_is_loadable’, false, ID) not working in my case.

    add_filter( 'pum_popup_is_loadable', 'cr_popup_loading'  );
    function cr_popup_loading($id) {
    	global $wp_post_types, $post;
    
    	if ( "post" == $wp_post_types && $post->ID == 1810 ) {
    	 return false;
    	}
    	
    	if ( "post" == $wp_post_types && $post->ID == 1036 ) {
    	 return false;
    	}
    }

    is it right way by code?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to disable popup loading dynamimcally for particular post type or page’ is closed to new replies.