WP_Session_Tokens::__constructprotectedWP 4.0.0

Protected constructor. Use the get_instance() method to get the instance.

Method of the class: WP_Session_Tokens{}

No Hooks.

Returns

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->__construct( $user_id );
$user_id(int) (required)
User whose session to manage.

Changelog

Since 4.0.0 Introduced.

WP_Session_Tokens::__construct() code WP 6.8.1

protected function __construct( $user_id ) {
	$this->user_id = $user_id;
}