Hi @lpp_dev,
Unfortunately, it’s not possible in the current version of the plugin.
We will see if it is possible to add this option in the future updates.
Regards.
Great, thank you. In the meantime I’ll try to tag on an ajax call when profile updates are submitted using jQuery to get the job done.
Should the user see a message when their profile has been successfully updated?
-
This reply was modified 7 years, 4 months ago by
LPP_DEV.
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:hbaum@salisburypreschool.org', 'Bcc:webdev@somewebdevdomain.com', 'From:Some Profile Update <do_not_reply@somegroupsitedomain.com>', 'Reply-To:No-reply Email<do_not_reply@somegroupsitedomain.com>');
wp_mail( 'groupManager@somegroupsitedomain.com', '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.