Filter: um_registration_show_message_redirect_url

apply_filters( 'um_registration_show_message_redirect_url', $url, $status, $user_id, $form_data ) → {string}

Filters the redirect URL for user after registration based on its status when need to show message.

Parameters:
Name Type Description
$url string

Redirect URL.

$status string

User status.

$user_id int

User ID.

$form_data array

Form data.

Since:
  • 2.6.11
Source:
Returns:

Redirect URL.

Type
string
Example

Change redirect URL for user after registration based on its status when need to show message.

function my_um_registration_show_message_redirect_url( $url, $status, $user_id ) {
    // your code here
    return $url;
}
add_filter( 'um_registration_show_message_redirect_url', 'my_um_registration_show_message_redirect_url', 10, 4 );