Title: Plugin won&#8217;t deactivate or delete
Last modified: December 21, 2016

---

# Plugin won’t deactivate or delete

 *  [craigcpcb](https://wordpress.org/support/users/craigcpcb/)
 * (@craigcpcb)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/plugin-wont-deactivate-or-delete/)
 * HI,
    I installed the plugin and decided it didn’t meet with my requirements. 
   Now I am unable to delete or deactivate the plugin and get a php error:
 * [21-Dec-2016 18:25:26 UTC] PHP Notice: Undefined property: Wp_Custom_Register_Login_Loader::
   $shortcodes in /home/sandca94/public_html/largomar/wp-content/plugins/wp-custom-
   register-login/includes/class-wp-custom-register-login-loader.php on line 96
   [
   21-Dec-2016 18:25:27 UTC] PHP Notice: Undefined property: Wp_Custom_Register_Login_Loader::
   $shortcodes in /home/sandca94/public_html/largomar/wp-content/plugins/wp-custom-
   register-login/includes/class-wp-custom-register-login-loader.php on line 96
 * How do I get rid of this plugin?
 * Regards,
 * Craig

Viewing 1 replies (of 1 total)

 *  [ronfocusmx](https://wordpress.org/support/users/ronfocusmx/)
 * (@ronfocusmx)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/plugin-wont-deactivate-or-delete/#post-9066137)
 * I am not sure if anyone has a better solution, but I had the same issue once 
   we upgrade wordpress for a client to the newest version. I modified the file
   
   wp-custom-register-login/includes/class-wp-custom-register-login-loader.php
 * I added the following 2 line blocks. Right below line 42 (protected $filters;)
 * I added
    /** * The array of shortcodes registered with WordPress. * * [@since](https://wordpress.org/support/users/since/)
   1.0.0 * [@access](https://wordpress.org/support/users/access/) protected * [@var](https://wordpress.org/support/users/var/)
   array $shortcodes The shortcodes registered with WordPress to fire when the plugin
   loads. */ protected $shortcodes;
 * Then in the constructor which is now line 58 is you added the above code right
   below $this->filters = array();
 * I added
    $this->shortcodes = array();
 * Adding the above code got the site I had to work. I am not 100% sure what it 
   does to the plugin.

Viewing 1 replies (of 1 total)

The topic ‘Plugin won’t deactivate or delete’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-custom-register-login_c973de.svg)
 * [WP Custom Register Login](https://wordpress.org/plugins/wp-custom-register-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-custom-register-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-custom-register-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-custom-register-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-custom-register-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-custom-register-login/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ronfocusmx](https://wordpress.org/support/users/ronfocusmx/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/plugin-wont-deactivate-or-delete/#post-9066137)
 * Status: not resolved