Run on successful submit profile form
-
Can someone *please* confirm that this code actually works with WP 4.9.6, and UM 2.0.17 ? It used to work for me, but stopped a few weeks ago, Ninja Forms still sends out email, so mail is leaving server.
This is in the bottom of my functions.php file. Any and all help is greatly appreciated!!!
// Run on successful submit profile form add_action('um_user_edit_profile', 'um_post_edit_pending_hook', 10, 1); function um_post_edit_pending_hook($args) { $user_id = $args['user_id']; get_currentuserinfo(); if ( is_user_logged_in() ) { $to = $current_user->user_email; $subject = $current_user->user_firstname . ' ' . $current_user->user_lastname . ' has updated their profile'; $message = 'You will receive this email when a user edits their profile.'; wp_mail( $to, $subject, $message ); } }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Run on successful submit profile form’ is closed to new replies.