Change From Address and Name in Notification Emails
-
WP V. 5.0.3
BP V. 4.1.0I have searched and found the following information on changing who notification emails are seen as coming from:
Filter From Address and Name
If you have been using the wp_mail_from or wp_mail_from_name WP filter, then you need to switch to this:add_action( ‘bp_email’, function( $email_type, $email_obj ) {
$email_obj->set_from( “custom@example.com”, “Custom Website Name” );
}, 10, 2 );Unfortunately, it isn’t clear where I am supposed to add this code. Can I access the file from the WordPress editor? Or, do I need FTP access to do this? Why is the from name and from address not an inline editing option on the WP backend?
Thanks,
James
- You must be logged in to reply to this topic.