1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. How to Change the Recipient of User Registration and Password Change Notification Emails

How to Change the Recipient of User Registration and Password Change Notification Emails

Introduction

BuddyBoss does not provide a built-in option to change the recipient of notification emails sent when a user registers or changes their password. These notifications are handled by WordPress core. This guide explains how to change the recipient of user registration and password change notification emails

Custom Workaround

Before proceeding, make sure you have a complete site backup.

  1. Go to Appearance > Theme File Editor in your WordPress admin dashboard.
  2. Under Select theme to edit, choose your active theme (preferably a BuddyBoss Child Theme), then click Select.
  3. From the Theme Files list, open Theme Functions (functions.php).
  4. Add the following code just before the closing PHP tag ?>:

// Change email recipient for user registration and password change notifications.

function custom_admin_email_recipients( $email ) {

    $email[‘to’] = ‘[email protected]’; // Replace with the desired email address

    return $email;

}

add_filter( ‘wp_new_user_notification_email_admin’, ‘custom_admin_email_recipients’ );

add_filter( ‘password_change_email’, ‘custom_admin_email_recipients’ );

Note: Replace [email protected] with the email address that should receive the notifications.

  1. Click Update File to save the changes.

Note: Modifications are typically considered custom work, but we are making an exception in this case. Please review the BuddyBoss Support Policy.

Troubleshooting and FAQs

Q: Emails are still going to the default admin email.
A: Make sure the code is added to the active (child) theme’s functions.php file. Clear any caching plugins and test again.

Q: Will this affect emails sent to users themselves?
A: No. This only affects admin notification emails, not user-facing emails.

Q: Can I revert this change easily?
A: Yes. Remove or comment out the code from functions.php and save the file.

Was this article helpful?

Related Articles

Subscribe to Our Newsletter

Stay In Touch

Subscribe to our Newsletter, and we’ll send you the latest news from BuddyBoss

  • This field is hidden when viewing the form
  • This field is for validation purposes and should be left unchanged.

To speak to our Agency consultant, fill in the form found at our Contact Page.

  • Get Started

    Enter your name and email address to get started with your project...

  • This field is for validation purposes and should be left unchanged.