wpseek.com
A WordPress-centric search engine for devs and theme authors



login_redirect › WordPress Filter Hooks

Since3.0.0
Deprecatedn/a
apply_filters( 'login_redirect', $redirect_to, $requested_redirect_to, $user )
Parameters: (3)
  • (string) $redirect_to The redirect destination URL.
    Required: Yes
  • (string) $requested_redirect_to The requested redirect destination URL passed as a parameter.
    Required: Yes
  • (WP_User|WP_Error) $user WP_User object if login was successful, WP_Error object otherwise.
    Required: Yes
Defined at:
Codex:

Filters the login redirect URL.





Source

$redirect_to = apply_filters( 'login_redirect', $redirect_to, $requested_redirect_to, $user );