Function
Filter the registration redirect when auto-login is enabled.
tml_registration_redirect( string $url, WP_User $user )
Parameters
-
$urlstring - The registration redirect URL.
-
$userWP_User - The user object.
Return
string
The registration redirect URL.
Source
function tml_registration_redirect( $url, $user ) {
if ( tml_allow_auto_login() ) {
$url = apply_filters( 'login_redirect', home_url(), tml_get_request_value( 'redirect_to' ), $user );
}
return $url;
}
Uses
Changelog
| Version | Description |
|---|---|
| 7.0.1 | Introduced. |