Skip to content

Instantly share code, notes, and snippets.

@sareiodata
Created August 22, 2012 15:25
Show Gist options
  • Save sareiodata/3426757 to your computer and use it in GitHub Desktop.
Save sareiodata/3426757 to your computer and use it in GitHub Desktop.
function pb_send_email_on_profile_update($user_id, $old_user_data){
$message = "$user_id updated their profile";
wp_mail('me@example.net', 'The subject', $message);
}
add_action("profile_update", "pb_send_email_on_profile_update", 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment