WP_Session_Tokens::get_instance

Advertisement

Summery Summery

Retrieves a session manager instance for a user.

Syntax Syntax

WP_Session_Tokens::get_instance( int $user_id )

Description Description

This method contains a ‘session_token_manager’ filter, allowing a plugin to swap out the session manager for a subclass of WP_Session_Tokens.

Parameters Parameters

$user_id

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

Return Return

(WP_Session_Tokens) The session object, which is by default an instance of the WP_User_Meta_Session_Tokens class.

Source Source

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


			

Advertisement

Changelog Changelog

Changelog
Version Description
4.0.0 Introduced.

Advertisement

Leave a Reply

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