apply_filters( 'logout_url', string $logout_url , string $redirect )
Filters the logout URL.
Contents
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. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
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.
Top ↑
Feedback
You have to give a higher priority, instead of 10, 20. — By mohdlatif —