Action: um_post_registration_{$status}_hook

do_action( 'um_post_registration_{$status}_hook', $user_id, $submitted_data, $form_data )

Fires after complete UM user registration. Where $status can be equal to 'approved', 'checkmail' or 'pending'.

Parameters:
Name Type Description
$user_id int

User ID.

$submitted_data array

Registration form submitted data.

$form_data array

Form data. Since 2.6.8

Since:
  • 2.6.8 Added $form_data argument.
Source:
Examples

Make a custom action after complete UM user registration when user get an approved status.

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

Make a custom action after complete UM user registration when user requires email activation.

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

Make a custom action after complete UM user registration when user requires admin review.

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