apply_filters( 'login_url', string $login_url , string $redirect , bool $force_reauth )
Filters the login URL.
Description Description
Parameters Parameters
- $login_url
-
(string) The login URL. Not HTML-encoded.
- $redirect
-
(string) The path to redirect to on login, if supplied.
- $force_reauth
-
(bool) Whether to force reauthorization, even if a cookie is present.
Source Source
Changelog Changelog
Version | Description |
---|---|
4.2.0 | The $force_reauth parameter was added. |
2.8.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Here’s an example of filtering the `login_url` to specify a custom one:
Expand full source codeCollapse full source code