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.


Top ↑

Source

File: wp-includes/pluggable.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More