wppaste
WordPress

apply_filters( 'session_token_manager', string $session )

Since
4.0.0
Filters the class name for the session token manager.

Compatibility

WordPress
since 4.0.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$sessionstring
Name of class to use as the manager.
Default 'WP_User_Meta_Session_Tokens'.

Where this hook fires · 2

  • wp-includes/class-wp-session-tokens.php:58WP_Session_Tokens::get_instance()
  • wp-includes/class-wp-session-tokens.php:222WP_Session_Tokens::destroy_all_for_all_users()

Source code

		 *		 * @since 4.0.0		 *		 * @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.	 *

Changelog

Introduced in 4.0.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.