WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about determine_current_user

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/user.php apply_filters 3604 /**
* 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.
*
* @since 3.9.0
*
* @param int|false $user_id User ID if one has been determined, false otherwise.
*/

Hook Parameters

Parameter Type Name Description
int|false $user_id User ID if one has been determined, false otherwise.