Filters the logout URL.
Parameters
$logout_url
string- The HTML-encoded logout URL.
$redirect
string- Path to redirect to on logout.
Source
return apply_filters( 'logout_url', $logout_url, $redirect );
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
Example migrated from Codex:
The following example changes the logout URL to a URL path relative to the home URL while keeping the same redirect URL.