Filter hook 'determine_current_user'

in WP Core File wp-includes/user.php at line 3668

Description

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.

Occurrences

Filename Line Number
wp-includes/user.php 3668

Parameters

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

PHP Doc

/**
	 * 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.
	 */