WPMU remove wpmu_welcome_user_notification (5 posts)

  1. lulewittchen
    Posted 5 years ago #

    How can I stop the mails sent when a new blog is registrated? I would like to do this within a Plugin.

    Cann anybody help?

  2. Super Admin -> Options, there's a section there to uncheck the ticky box that says:

    "Registration notification Send the network admin an email notification every time someone registers a site or user account."

  3. lulewittchen
    Posted 5 years ago #

    Thanks Andrea. I found that chackbox. But I'd also like to stop the mails sent to the user.

    We have our own system to do that. So I don't want our customers to get 2 mails for the same thing.

  4. lulewittchen
    Posted 5 years ago #

    it seems that I found a solution:

    i wrote a plugin whick hooks the the 2 functions 'wpmu_welcome_notification' and 'wpmu_welcome_user_notification'

    I simply killed the wp_mail calls in them and replaced them with a none-sense function.

    Here is my code:
    function my_nonesense() {
    return true;

    remove_filter('wpmu_welcome_notification', 'wp_mail');
    add_filter('wpmu_welcome_notification', 'my_nonesense');
    remove_filter('wpmu_welcome_user_notification', 'wp_mail');
    add_filter('wpmu_welcome_user_notification', 'my_nonesense');

  5. sharris203
    Posted 5 years ago #

    Just what I need, but the above code isn't working. I placed it inside an existing plugin. Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic