determine_current_user

Advertisement

Summery Summery

Filters the current user.

Syntax Syntax

apply_filters( 'determine_current_user', int|bool $user_id )

Description 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 Parameters

$user_id

(int|bool) User ID if one has been determined, false otherwise.

Source Source

File: wp-includes/user.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.9.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.