Used By
| Used By | Description |
|---|---|
| wp-includes/user.php: _wp_get_current_user() | Retrieves the current user object. |
Filters the current user.
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.
(int|bool) User ID if one has been determined, false otherwise.
File: wp-includes/user.php
| Version | Description |
|---|---|
| 3.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/determine_current_user