Filters the login redirect URL.
$redirect_tostring$requested_redirect_tostring$userWP_User|WP_Errorwp-login.php:1353file scope * @since 3.0.0 * * @param string $redirect_to The redirect destination URL. * @param string $requested_redirect_to The requested redirect destination URL passed as a parameter. * @param WP_User|WP_Error $user WP_User object if login was successful, WP_Error object otherwise. */ $redirect_to = apply_filters( 'login_redirect', $redirect_to, $requested_redirect_to, $user ); if ( ! is_wp_error( $user ) && ! $reauth ) { if ( $interim_login ) { $message = '<p class="message">' . __( 'You have logged in successfully.' ) . '</p>'; $interim_login = 'success'; login_header( '', $message );Introduced in 3.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.