auth_redirect WordPress Action Hook

The auth_redirect hook is called after the user is authenticated but before they are redirected to the requested page. This hook can be used to perform additional authentication checks or to redirect the user to a different page.

do_action( 'auth_redirect', int $user_id ) #

Fires before the authentication redirect.


Parameters

$user_id

(int)User ID.


Top ↑

Source

File: wp-includes/pluggable.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.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