Filter hook 'login_redirect'

in WP Core File wp-login.php at line 1352

Description

Filters the login redirect URL.

Occurrences

Filename Line Number
wp-login.php 1352

Parameters

Type Name Description
string $redirect_to The redirect destination URL.
string $requested_redirect_to The requested redirect destination URL passed as a parameter.
WP_User|WP_Error $user WP_User object if login was successful, WP_Error object otherwise.

PHP Doc

/**
		 * Filters the login redirect URL.
		 *
		 * @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.
		 */