Hi,
There is no predefined notification email in Pie Register settings when a user updates the profile.
However, you can write custom code to send an email in a function and hook that function to ‘piereg_update_profile_event’ action. This action executes every time a user updates their profile.
Thank you
Any sample or reference for the same?
Hi,
The following is the sample code on how to use the action.
This is to be pasted in your current theme’s functions.php file.
add_action( 'piereg_update_profile_event', 'send_email_on_profile_update', 10, 3 );
function send_email_on_profile_update($user_id, $form_id,$user_data)
{
if(!current_user_can('administrator')){
// Code to send an email
}
}
Thank you