Action
rpress_user_profile_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#
| Parameter | Type | Description |
|---|---|---|
$user_id | int | ID of the user that was updated. |
$userdata | array | User 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), inrpress_process_profile_editor_updates()
See also#
Was this page helpful?
