Skip to content
Docs
Get RestroPress

Action

rpress_user_profile_updated

Updated
On this page

Fires after a customer's profile has been updated successfully.

Runs in rpress_process_profile_editor_updates() when the update succeeded, immediately before the redirect back to the profile page with updated=true.

Parameters#

ParameterTypeDescription
$user_idintID of the user that was updated.
$userdataarrayUser fields that were saved: ID, first_name, last_name, display_name, user_email.

Example#

function my_sync_profile_to_crm( $user_id, $userdata ) {
	update_user_meta( $user_id, 'my_crm_sync_pending', $userdata['user_email'] );
}
add_action( 'rpress_user_profile_updated', 'my_sync_profile_to_crm', 10, 2 );

Source#

Fired from:

  • includes/shortcodes.php (line 105), in rpress_process_profile_editor_updates()

See also#

Was this page helpful?