Title: Avoid breaking pluggable function
Last modified: September 29, 2016

---

# Avoid breaking pluggable function

 *  [sneezry](https://wordpress.org/support/users/sneezry/)
 * (@sneezry)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/avoid-breaking-pluggable-function/)
 * Hi, thanks for this great plugin!
 * I find some compatibility problems for this plugin with plugin override functions
   in pluggable.php.
 * To fix this issue, please call $mysubscribe2->s2init() only when plugins are 
   all loaded
 * `add_action( 'plugins_loaded', array( $mysubscribe2, 's2init' ) );`
 * Also, remove
 *     ```
       if ( !function_exists('get_userdata') ) {
           require_once(ABSPATH . WPINC . '/pluggable.php');
       }
       ```
   
 * from classes/class-s2-admin.php
    -  This topic was modified 9 years, 8 months ago by [sneezry](https://wordpress.org/support/users/sneezry/).
    -  This topic was modified 9 years, 8 months ago by [sneezry](https://wordpress.org/support/users/sneezry/).
    -  This topic was modified 9 years, 8 months ago by [sneezry](https://wordpress.org/support/users/sneezry/).

Viewing 1 replies (of 1 total)

 *  [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/avoid-breaking-pluggable-function/#post-8237687)
 * [@sneezry](https://wordpress.org/support/users/sneezry/)
 * This looks like a good suggestion to me and I’ll certainly adopt it for Subscribe2
   HTML. Unfortunately I can’t make changes to Subscribe2 anymore so cannot update
   the free version.

Viewing 1 replies (of 1 total)

The topic ‘Avoid breaking pluggable function’ is closed to new replies.

 * ![](https://ps.w.org/subscribe2/assets/icon-256x256.png?rev=2318630)
 * [Subscribe2 - Form, Email Subscribers & Newsletters](https://wordpress.org/plugins/subscribe2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/subscribe2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/subscribe2/)
 * [Active Topics](https://wordpress.org/support/plugin/subscribe2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/subscribe2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/subscribe2/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/avoid-breaking-pluggable-function/#post-8237687)
 * Status: not resolved