• Resolved Dexter0015

    (@improvedline)


    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)
  • Thread Starter Dexter0015

    (@improvedline)

    Nevermind.
    I use “freesoul deactive plugins” plugin, it works like a charm.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.