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.
Source
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |