session_token_manager
Filters the class name for the session token manager.
Использование
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(строка)
- Name of class to use as the manager.
По умолчанию: 'WP_User_Meta_Session_Tokens'
Список изменений
С версии 4.0.0 | Введена. |
Где вызывается хук
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' );