Disable tarteaucitron on specific custom post type
-
Hi,
For a client, I need to be able to disable tarteaucitron from loading on a specific post type.
I try to add a mu plugin containing the folowwing code, but its compltely ignored, any idea why?add_action( 'wp_head', 'ci_disable_tac_on_lps' );
function ci_disable_tac_on_lps() {
if ( get_post_type( get_the_ID() ) == 'e-landing-page' ) {
remove_action( 'wp_head', 'tarteaucitronForceLocale', 1 );
}
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.