session_token_manager WordPress Filter Hook

The session_token_manager hook allows a plugin to manage the session tokens for a user. This is useful for cases where a user's session needs to be invalidated or where a user needs to be logged out of all sessions.

apply_filters( 'session_token_manager', string $session ) #

Filters the class name for the session token manager.


Parameters

$session

(string)Name of class to use as the manager. Default 'WP_User_Meta_Session_Tokens'.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.