apply_filters( 'determine_current_user', int|bool $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_id
-
User ID if one has been determined, false otherwise.
Source
File: wp-includes/user.php
Changelog
Version | Description |
---|---|
WP-3.9.0 | Introduced. |