On this page
do_action( 'auth_redirect', int $user_id )
Fires before the authentication redirect.
Parameters
$user_idint-
User ID.
Source
File: wp-includes/pluggable.php. View all references
do_action( 'auth_redirect', $user_id );
Related
Used By
| Used By | Description |
|---|---|
| auth_redirect() wp-includes/pluggable.php | Checks if a user is logged in, if not it redirects them to the login page. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/auth_redirect