login_redirect

login_redirect

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('login_redirect') is found 1 times:

  • /wp-login.php line 1347
    		 * @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 );
    

See this hook used in plugins: