Title: use wp_enqueue_styles
Last modified: August 20, 2016

---

# use wp_enqueue_styles

 *  [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [15 years ago](https://wordpress.org/support/topic/use-wp_enqueue_styles/)
 * 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](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [15 years ago](https://wordpress.org/support/topic/use-wp_enqueue_styles/#post-2102965)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/exclusive-content-password-protect.
   svg)
 * [Exclusive Content Password Protect](https://wordpress.org/plugins/exclusive-content-password-protect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/exclusive-content-password-protect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/exclusive-content-password-protect/)
 * [Active Topics](https://wordpress.org/support/plugin/exclusive-content-password-protect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/exclusive-content-password-protect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/exclusive-content-password-protect/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/use-wp_enqueue_styles/#post-2102965)
 * Status: not resolved