• Resolved LPP_DEV

    (@lpp_dev)


    Is it possible to get notified whenever a user updates their UM profile? I read this thread but the plugin mentioned here only works when the profile is edited within the WordPress > Users area of the site editor, not from the Ultimate Member > User’s Profile page.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    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.

    Thread Starter LPP_DEV

    (@lpp_dev)

    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.

    Thread Starter LPP_DEV

    (@lpp_dev)

    Should the user see a message when their profile has been successfully updated?

    • This reply was modified 6 years ago by LPP_DEV.
    Thread Starter LPP_DEV

    (@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:[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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Admin Notifications when Profile Changes’ is closed to new replies.