auth_redirect_scheme WordPress Filter Hook
The auth_redirect_scheme hook allows you to modify the authentication redirect scheme. By default, this is set to 'login_redirect', which will redirect users to the login page if they are not logged in. However, you can use this hook to change the redirect scheme to 'admin_redirect', which will redirect users to the admin area if they are not logged in.
apply_filters( 'auth_redirect_scheme', string $scheme ) #
Filters the authentication redirect scheme.
Parameters
- $scheme
(string)Authentication redirect scheme. Default empty.
Source
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |