BuddyDev

Search

[Resolved] How to disable wordpress/buddypress new user email

  • Participant
    Level: Guru
    Posts: 903
    Tosin on #54543

    Hello Brajesh,

    Happy new year, Please how can I disable the (new user registration) email for only admin.

    Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24766
    Brajesh Singh on #54631

    Hi Tosin,
    Happy New year.

    Hope you are doing well.

    Can you please clarify:-
    1. Do you want to send to user or not? Is it about activation email?
    2. Do you want to stop admin from receiving email, Is it about the email that WordPress sends to admin?

    If it is about admin, you can use the following code

    
    add_filter( 'wp_send_new_user_notification_to_admin', '__return_false' );
    

    Regards
    Brajesh

  • Participant
    Level: Guru
    Posts: 903
    Tosin on #54665

    Thanks Brajesh

    Your code worked perfectly.

You must be logged in to reply to this topic.

This topic is: resolved