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.
- Go to Appearance > Theme File Editor in your WordPress admin dashboard.
- Under Select theme to edit, choose your active theme (preferably a BuddyBoss Child Theme), then click Select.
- From the Theme Files list, open Theme Functions (functions.php).
- 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’ );
- Click Update File to save the changes.
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.