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' ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |