WordPress at Your Fingertips
filter is not described

determine_current_user filter-hook . WP 3.9.0

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.


add_filter( 'determine_current_user', 'filter_function_name_2708' );
function filter_function_name_2708( $user_id ){
	// filter...

	return $user_id;
User ID if one has been determined, false otherwise.


Since 3.9.0 Introduced.

Where the hook is called

wp-includes/user.php 3193
$user_id = apply_filters( 'determine_current_user', false );

Where in WP core the hook is used WordPress

wp-includes/default-filters.php 479
add_filter( 'determine_current_user', 'wp_validate_auth_cookie' );
wp-includes/default-filters.php 480
add_filter( 'determine_current_user', 'wp_validate_logged_in_cookie', 20 );
wp-includes/default-filters.php 481
add_filter( 'determine_current_user', 'wp_validate_application_password', 20 );