Hello @melinach
The plugin sends the Account Updated Email to the member when the account is updated.
You can use a code snippet below to send an email copy to the site administrator. This PHP code snippet adds the admin mailbox as the Cc (Carbon copy) header. Just add this code snippet to the file functions.php
in the active theme directory.
// Send the Account Updated email copy to the site administrator.
add_filter( 'um_email_send_subject', function( $subject, $template ) {
if( 'changedaccount_email' === $template ){
UM()->mail()->headers .= 'Cc: ' . stripslashes( UM()->options()->get('mail_from') ) . ' <' . UM()->options()->get('mail_from_addr') . '>' . "\r\n";
}
return $subject;
}, 20, 2 );
You can use a solution that @missveronicatv proposed if you want to send an email to the site administrator when the profile is updated.