@erfanmhd
Ultimate Member does not have that feature.
Here is an “action” I did add to do it.
Modify it to fit your own website (email, removing Appartement meta, etc.)
Hope this would be helpful to you.
add_action( 'um_account_pre_update_profile', 'my_account_pre_update_profile', 10, 2 );
function my_account_pre_update_profile( $changes, $user_id ) {
um_fetch_user($user_id);
$GLOBALS['before_display_name'] = um_user('display_name');
$GLOBALS['before_email'] = um_user('user_email');
}
add_action( 'um_after_user_account_updated', 'my_after_user_account_updated', 10, 2 );
function my_after_user_account_updated( $user_id, $changes ) {
um_fetch_user($user_id);
$after_display_name = um_user('display_name');
$after_email = um_user('user_email');
$appartement = um_user('appartement');
$headers = array('Content-Type: text/html; charset=UTF-8',
'From:Le Laurier <[email protected]>', 'Reply-To:Ne pas répondre<[email protected]>');
if ($after_email !== $GLOBALS['before_email']) {
wp_mail( '[email protected]', 'Le Laurier - Courriel modifié - '.$after_display_name.' - Appartement '.$appartement.'',
'<div style="max-width: 560px; padding: 20px; background: #ffffff; border-radius: 5px; margin: 40px auto;
font-family: Open Sans,Helvetica,Arial; font-size: 15px; color: #666;"><div style="color: #444444; font-weight: normal;">
<div style="text-align: center; font-weight: 600; font-size: 26px; padding: 10px 0; border-bottom: solid 3px #eeeeee;">
<strong><span style="color: #008000;">Le Laurier</span></strong></div><div style="clear: both;"> </div></div>
<div style="padding: 0 30px 30px 30px; border-bottom: 3px solid #eeeeee;">
<div style="padding: 30px 0; font-size: 24px; text-align: center; line-height: 40px;">
Le courriel de <b> '.$after_display_name.'</b>, appartement <b> '.$appartement.'</b>,
a été modifié de '.$GLOBALS['before_email'].' à '.$after_email.'<br><br></div></div></div>',$headers);
}}