session_token_manager
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
session_token_manager
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' );