session_token_manager

session_token_manager

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('session_token_manager') is found 2 times:

  • /wp-includes/class-wp-session-tokens.php line 58
    		 *
    		 * @param string $session Name of class to use as the manager.
    		 *                        Default 'WP_User_Meta_Session_Tokens'.
    		 */
    		$manager = apply_filters( 'session_token_manager', 'WP_User_Meta_Session_Tokens' );
    		return new $manager( $user_id );
    	}
    
    	/**
    	 * Hashes the given session token for storage.
    	 *
    
  • /wp-includes/class-wp-session-tokens.php line 227
    	 * @since 4.0.0
    	 */
    	final public static function destroy_all_for_all_users() {
    		/** This filter is documented in wp-includes/class-wp-session-tokens.php */
    		$manager = apply_filters( 'session_token_manager', 'WP_User_Meta_Session_Tokens' );
    		call_user_func( array( $manager, 'drop_sessions' ) );
    	}
    
    	/**
    	 * Retrieves all sessions for a user.
    	 *