Description
A filter to redirect a user to a custom location after registration.
Arguments
- $url(string) - The initial url where to redirect to.
Return
(string) Your custom url where to redirect to
Usage
function b3_redirect_after_register_example( $url ) {
$login_url = b3_get_login_url();
if ( false != $login_url ) {
$url = add_query_arg( 'registered', 'success', $login_url );
}
return $url;
}
add_filter( 'b3_redirect_after_register', 'b3_redirect_after_register_example' );
Used in
- B3Onboarding.php - line 564
- B3Onboarding.php - line 574