1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. Change the recipient of notification emails sent when a user registers or changes their password

Change the recipient of notification emails sent when a user registers or changes their password

Please be advised that there’s currently no out-of-the-box option to do this in BuddyBoss.

Modifications are typically considered custom work, but we are making an exception in this case. Kindly check our Support Policy here: https://www.buddyboss.com/support-policy/.

Kindly try adding the following code in your theme files:

1. Go to Appearance > Theme File Editor

2. Under “Select theme to edit”, choose (BuddyBoss Child/Whatever theme is active), then click “Select”.

3. Below Theme Files, select Theme Functions (functions.php).

4. Append the following 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: Please make a backup of your site.

5. Click “Update File”.

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Support

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.

Not recently active