logout_url WordPress Filter Hook
The logout_url hook allows you to change the URL that is used when a user logs out of your WordPress site.
apply_filters( 'logout_url', string $logout_url , string $redirect ) #
Filters the logout URL.
Parameters
- $logout_url
(string)The HTML-encoded logout URL.
- $redirect
(string)Path to redirect to on logout.
More Information
This filter is applied to the url returned by the function wp_logout_url().
Source
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |