Notify admin upon profile update?
-
I have the following in my functions.php file, it was working… it’s possible that plugin updates broke it. Disabled non-critical plugins, running WP 4.9.6, and UM 2.0.17
This no longer triggers the email to be sent.// Run on successful submit profile form
add_action(‘um_user_edit_profile’, ‘um_post_edit_pending_hook’, 10, 2);
function um_post_edit_pending_hook($user_id, $args) {get_currentuserinfo();
if ( is_user_logged_in() ) {
$to = ‘[email protected]’;
$subject = ‘User has updated their profile’;
$message = ‘You will receive this email when a user edits their profile.’;wp_mail( $to, $subject, $message );
}
}
- The topic ‘Notify admin upon profile update?’ is closed to new replies.