do_action( 'auth_redirect', int $user_id )
Fires before the authentication redirect.
Parameters Parameters
- $user_id
-
(int) User ID.
Source Source
Changelog Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
Fires before the authentication redirect.
(int) User ID.
Used By | Description |
---|---|
wp-includes/pluggable.php: auth_redirect() |
Checks if a user is logged in, if not it redirects them to the login page. |
Version | Description |
---|---|
2.8.0 | Introduced. |
Code is Poetry.