do_action( 'track_{$status}_user_registration', $user_id, $submitted_data, $form_data )
Fires after complete UM user registration. Only for the frontend action which is run before autologin and redirects. Where $status can be equal to 'approved', 'checkmail' or 'pending'.
Parameters:
Name | Type | Description |
---|---|---|
$user_id |
int | User ID. Since 2.6.8 |
$submitted_data |
array | Registration form submitted data. Since 2.6.8 |
$form_data |
array | Form data. Since 2.6.8 |
- Since:
- 2.6.8 Added $user_id, $submitted_data, $form_data arguments.
- Source:
Examples
function my_um_post_registration( $user_id, $submitted_data, $form_data ) {
// your code here
}
add_action( 'track_approved_user_registration', 'my_um_post_registration', 10, 3 );
function my_um_post_registration( $user_id, $submitted_data, $form_data ) {
// your code here
}
add_action( 'track_checkmail_user_registration', 'my_um_post_registration', 10, 3 );
function my_um_post_registration( $user_id, $submitted_data, $form_data ) {
// your code here
}
add_action( 'track_pending_user_registration', 'my_um_post_registration', 10, 3 );