Hi @walterkeener3,
Thanks for contacting us,
I hope you are doing well, The New User Approve plugin gets an admin email from the WordPress default settings which you can find in general settings and you can easily change that email but if you don’t want to change that setting and want to get new user emails to any other email then you can use this filter “new_user_approve_email_header“.
Please have a look at the screenshot.
Thanks & Regards
WP Experts Support Team
I would like to use this filter: new_user_approve_email_header
What is the function to change the email using this method please?
this function is not working – please advise:
function send_new_user_approval_email_to_different_address( $headers ) {
// Replace “[email protected]” with the email address you want to send the email to
$headers[] = ‘Bcc: [email protected]’;
return $headers;
}
add_filter( ‘new_user_approve_email_header’, ‘send_new_user_approval_email_to_different_address’ );
Hi @walterkeener3,
We have to check this and we will keep you updated on this.
Thank you
Hi @walterkeener3,
In the free version of the New User Approve, you can use the following snippet to change the admin email in all the emails that are sending from this plugin.
add_filter('new_user_approve_email_header',function($headers){
$admin_email = '[email protected]' ;
$from_name = get_option( 'blogname' );
$headers = array( "From: \"{$from_name}\" <{$admin_email}>\n" );
return $headers;
});
Thank you
Im sorry – i dont mean the email sending “From” but the email to send “To”.
Currently it uses the wordpress settings admin email and I would like to change this to another email without changing the wordpress admin email.
Hi @walterkeener3,
You can get that setting with a lot of other features in the premium version of the New User Approve plugin. There you can set multiple admins to whom you want to send emails.
Please have a look at the screenshot.
Thank you