• Resolved french150

    (@french150)


    Hi, I would like have an option to send a notification mail on update profile to owner profile. This is very useful for example when some allowed user or admin edit profile of some user so he will be advised about this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @french150

    This feature is not available with UM as of now but you can try following code snippet to achieve it. Please now, code snippet is just an example, you can make modification to it as per your requirement.

    add_action( 'um_after_user_updated', function($user_id, $args, $to_update){
    	um_fetch_user( $user_id );
    	$email = um_user( 'user_email' );
    	$message = 'Your profile was updated';
    	wp_mail($email,'Profile Updated', $message,);
    },10,3 );

    The above code will simply send an email to the profile owner whenever their profile is updated but if you want to use a custom email template, you will need to do further customization.

    Plugin Support andrewshu

    (@andrewshu)

    Hi @french150

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.