session_token_manager filter-hookWP 4.0.0

Filters the class name for the session token manager.

Usage

add_filter( 'session_token_manager', 'wp_kama_session_token_manager_filter' );

/**
 * Function for `session_token_manager` filter-hook.
 * 
 * @param string $session Name of class to use as the manager.
 *
 * @return string
 */
function wp_kama_session_token_manager_filter( $session ){

	// filter...
	return $session;
}
$session(string)
Name of class to use as the manager.
Default: 'WP_User_Meta_Session_Tokens'

Changelog

Since 4.0.0 Introduced.

Where the hook is called

WP_Session_Tokens::get_instance()
session_token_manager
WP_Session_Tokens::destroy_all_for_all_users()
session_token_manager
wp-includes/class-wp-session-tokens.php 58
$manager = apply_filters( 'session_token_manager', 'WP_User_Meta_Session_Tokens' );
wp-includes/class-wp-session-tokens.php 227
$manager = apply_filters( 'session_token_manager', 'WP_User_Meta_Session_Tokens' );

Where the hook is used in WordPress

Usage not found.