Plugin Conflict: WP Welcome Email Editor -> Mingle

March 15, 2010 | Bug Fixes, PHP, Troubleshooting, Wordpress | 3 comments

Mingle LogoJust 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:

  1. Open mingle.php
  2. After the PHP comment for the plugin at the top add the following code
    add_action('init', 'mngl_init');
    function mngl_init() {
  3. Right at the bottom of the code before the closing ?>, add the following:
    }
  4. 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.

A Donate Button!

3 Comments

  1. J.D.

    Dude, thanks a lot. That was just what I needed to fix my site. You are the man.

    Reply
  2. J.D.

    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.

    Reply
  3. Sean

    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

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

CommentLuv badge

About this site and Sean Barton

Picture of Sean
Sean Barton is a Freelance Website Developer in Crewe, Cheshire. He is a Full Stack Developer but with extensive experience in Wordpress and other Frameworks. He is the Co-Founder of SitePresser, Layouts Cloud and Page Builder Cloud among other things..
This site was set up in 2008 as a tutorial and scripting resource for the PHP language and Wordpress.
Find out more about Sean on the About Me page or use the Hire Me page to get in touch. For more information about Sean's work take a look at the Portfolio

SitePresser is the plugin that packages child themes and layout packs for sale. Works with Divi and Elementor.