session_token_manager

session_token_manager

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('session_token_manager') is found 2 times:

  • /wp-includes/class-wp-session-tokens.php line 58
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
         *
         * @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
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    * @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.
     *