Action: um_registration_set_extra_data

do_action( 'um_registration_set_extra_data', $user_id, $submitted_data )

Fires for updating user profile full name.

Parameters:
Name Type Description
$user_id int

User ID.

$submitted_data array

$_POST Submission array.

Since:
  • 1.3.x
Source:
Example

Make any custom action when updating user profile full name.

function my_registration_set_extra_data( $user_id, $submitted_data ) {
    // your code here
}
add_action( 'um_update_profile_full_name', 'my_update_profile_full_name', 10, 2 );

do_action( 'um_registration_set_extra_data', $user_id, $submitted_data, $form_data )

Fires after insert user to DB and there you can set any extra details.

Internal Ultimate Member callbacks (Priority -> Callback name -> Excerpt): 10 - um_registration_save_files() Save registration files. 100 - um_registration_set_profile_full_name() Set user's full name.

Parameters:
Name Type Description
$user_id int

User ID.

$submitted_data array

$_POST Submission array.

$form_data array

UM form data. Since 2.6.7

Since:
  • 2.0
Source:
Example

Make any custom action after insert user to DB.

function my_registration_set_extra_data( $user_id, $submitted_data, $form_data ) {
    // your code here
}
add_action( 'um_registration_set_extra_data', 'my_registration_set_extra_data', 10, 3 );