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



logout_redirect › WordPress Filter Hooks

Since4.2.0
Deprecatedn/a
apply_filters( 'logout_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) $user The WP_User object for the user that's logging out.
    Required: Yes
Defined at:
Codex:

Filters the log out redirect URL.





Source

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