W3cubDocs

/WordPress

WP_Session_Tokens::__construct( int $user_id )

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

Parameters

$user_id

(int) (Required) User whose session to manage.

Source

File: wp-includes/class-wp-session-tokens.php

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

Changelog

Version Description
4.0.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_session_tokens/__construct