Ok, there is a very simple solution to this. There is a brilliant Ultimate Member hook called ‘um_after_user_updated’. (Click here to see more).
To implement this hook for notifying when a member has updated their profile make a very simple child theme and add this code to its functions.php file.
add_action( 'um_after_user_updated', 'my_after_user_updated', 10, 3 );
function my_after_user_updated( $user_id, $args, $userinfo ) {
um_fetch_user($user_id);
$groupMember = um_user('display_name');
$groupMmbr_name = um_user('user_login');
$loggedIn_user = wp_get_current_user();
$loggedIn_userEml = $loggedIn_user->user_email;
$headers = array('Content-Type: text/html; charset=UTF-8', 'Cc:[email protected]', 'Bcc:[email protected]', 'From:Some Profile Update <[email protected]>', 'Reply-To:No-reply Email<[email protected]>');
wp_mail( '[email protected]', 'The '.$groupMember.'profile was updated.', 'The <b>'.$groupMember.'</b>profile was updated by the user with this email address: '.$loggedIn_userEml.'. <a href="https://somegroupsitedomain.com/user/'.$groupMmbr_name.'/?profiletab=main&um_action=edit"><b>Click here</b></a> to visit this profile online.<br><br><i style="color:#767676; font-size:11px; text-align:center;"><b>NOTE:</b> you must be logged in first to see this profile.</i>',$headers);
}
That is seriously it. Now whenever someone updates their profile or if an administrator updates someone’s profile those administrators above will get an email notifying them that someone has changed their profile.