ClassicPress logo
Skip to content
Filter by type:

Browse:

  • Home
  • Hooks
  • login_redirect

apply_filters( 'login_redirect', string $redirect_to, string $requested_redirect_to, WP_User|WP_Error $user )

Filters the login redirect URL.


Parameters

$redirect_to

The redirect destination URL.

$requested_redirect_to

The requested redirect destination URL passed as a parameter.

$user

WP_User object if login was successful, WP_Error object otherwise.


Source

File: wp-login.php

View on GitHub


Changelog

Changelog
Version Description
3.0.0 Introduced.
ClassicPress Documentation • Made with ClassicPress
Privacy Policy