Plugin Conflict: WP Welcome Email Editor -> Mingle
Just a quick one this evening. A user has recently noticed that the WordPress plugin called Mingle conflicts with my plugin WP Welcome Email Editor. It, for some reason, causes WordPress to call it’s own version of the wp_new_user_notification function before my plugin, or any other for that matter, can declare theirs.
The remedy is simple, fix Mingle. In the absence of that you can fix it using the following method:
- Open mingle.php
- After the PHP comment for the plugin at the top add the following code
add_action('init', 'mngl_init'); function mngl_init() {
- Right at the bottom of the code before the closing ?>, add the following:
}
- Save the file and then plugins like mine will work with it without causing a conflict.
If either the Mingle author fixes the problem or anyone has a better way of sorting this then please do let me know and I will update this post to let others know.
Please make sure you back up the mingle.php file before making these changes. Just in case 😉 Please also be aware that if you update the Mingle plugin then you need to put this code in again to maintain the fix.
Dude, thanks a lot. That was just what I needed to fix my site. You are the man.
Well, I thought your fix worked out okay, but apparently, the mingle.js file is failing to load now. Basically means I can’t use mingle anymore with your patch applied. 🙁 Perhaps there is a way to only disable the email notification feature? Other people are having problems with this problem with Mingle as well. It would be very nice if we could have full functionality of mingle without losing the ability to send custom new user email notifications.
Hi J.D.
I’ve looked at the output of the html headers with and without my fix and it seems to be identical. Want to email me your mingle.php file and I can take a look to see if the fix has been applied properly? I might not have described the process properly. Then again, seeing as I don’t use Mingle, it might be something I have yet to notice. Is it that the JS is not being loaded or is it not working? I am on barton.sean@gmail.com
Regarding turning off Mingles feature. It seems to me that Mingle is causing the wp_new_user_notification function to be declared by WordPress earlier than was expected by the developers and therefore leaves no way over overriding it. This is odd seeing as Mingle doesn’t do anything to do with emailing new users using that function. It might be something to do with the developer shoehorning an MVC programming model into WordPress. A pain to do anything with if you ask me!
thanks
Sean