WP_Session_Tokens::destroy_all_for_all_users() WordPress Method

The WP_Session_Tokens::destroy_all_for_all_users() function is used to destroy all session tokens for all users. This is typically used when you want to invalidate all sessions for all users, such as when you are changing the session cookie name.

WP_Session_Tokens::destroy_all_for_all_users() #

Destroys all sessions for all users.


Source

File: wp-includes/class-wp-session-tokens.php

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


Top ↑

Changelog

Changelog
VersionDescription
4.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.