• can you switch the stylesheet loader to use wp_enqueue_style so that i can deregister it and use my own w/o hacking the plugin? just change your cpp_head_includes function to the following:

    function cpp_head_includes(){
    wp_enqueue_style(‘cpp’, plugin_dir_url( __FILE__ ) . ‘css/style.css’);
    }
    add_action(‘init’,’cpp_head_includes’);

Viewing 1 replies (of 1 total)
  • Thread Starter HelgaTheViking

    (@helgatheviking)

    also realized i could remove it this way:

    function deregister_password_protect() {
            remove_action('wp_head', 'cpp_head_includes');
    }
    add_action( 'wp_print_scripts', 'deregister_password_protect' );
Viewing 1 replies (of 1 total)
  • The topic ‘use wp_enqueue_styles’ is closed to new replies.