• Resolved maximmmus

    (@maximmmus)


    Hi,

    I try to deregister the wpp on certain page templates, without any success. Can you see what is wrong? Thanks

    function deregister_wpp() {
       if ( is_page_template( array( 'template1.php', 'template2.php' ) ) ) {
            wp_deregister_script( 'wpp-4.1.0' );
       }
    }
    add_action( 'wp_enqueue_scripts', 'deregister_wpp' );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Deregister wpp’ is closed to new replies.