On this page
apply_filters( 'determine_current_user', int|false $user_id )
Filters the current user.
Description
The default filters use this to determine the current user from the request’s cookies, if available.
Returning a value of false will effectively short-circuit setting the current user.
Parameters
$user_idint|false-
User ID if one has been determined, false otherwise.
Source
File: wp-includes/user.php. View all references
$user_id = apply_filters( 'determine_current_user', false );
Related
Used By
| Used By | Description |
|---|---|
| _wp_get_current_user() wp-includes/user.php | Retrieves the current user object. |
Changelog
| Version | Description |
|---|---|
| 3.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/determine_current_user