Change “email changed” notification recipient
-
Hey,
I want to change the default recipient for “email changed” notification from user to email. I have tried to add this code in my function.php but it doesn’t work.
/* Change mail 'email changed' notification recipient from user to admin */ add_filter( 'um_email_notifications', 'my_email_notifications', 10, 1 ); function my_email_notifications( $emails ) { $emails['changedaccount_email'] = array( 'key' => 'changedaccount_email', 'title' => __( 'Account Updated Email','ultimate-member' ), 'subject' => '{first_name} {last_name} updated the email on {site_name}', 'body' => 'Hi,<br /><br />' . 'User {first_name} {last_name} with login {username} recently updated the email to {email}.<br /><br />' . 'Thanks,<br />' . '{site_name}', 'description' => __('Whether to send the user an email when he updated their account','ultimate-member'), 'recipient' => 'admin', 'default_active'=> true ); return $emails; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Change “email changed” notification recipient’ is closed to new replies.