add_filter('wp_mail','my_custom_registration_mail');
function my_custom_registration_mail($email) {
if (isset ($email['subject']) && substr_count($email['subject'],'Activate Your Account')>0 ) {
//email sender name and email
if( empty( $email['headers'] ) ){
$email['headers'] = array();
$email['headers'][] = 'from:YourDomain<signups@yourdomain.com>';
}
}
return ($email);
}
This should do it. Just change ‘yourdomain’ with something proper.
You’ll have to copy this code into bp-custom.php or your theme’s functions.php
Thanks. I put that in my child theme function.php file and it made my site go completely blank.
Hmm. I don’t know what I’m doing wrong?
Most likely its an issue with copying the code from here. It adds backticks in code, you need to remove those carefully.
@jessiewordpress
If the code is not working for you then you can try the following plugin
WP Change Default Email —-> https://wordpress.org/plugins/wp-change-default-email/
Hope it helps 😀
Thank you for that plugin! I’ll use that for now 🙂
What would be great is a plugin that helps with that AND editing the activation email AND changing the register/login page to not look like WordPress.
For instance, this is a wordpress website and has this register/login page: https://www.ziibra.com/signup/
Any suggestions for a workable plugin that accomplishes all of this?
I mean the login page looks like WordPress. Not the registration page. That looks great 🙂