WP_Session_Tokens::destroy_all_for_all_users()

In this article

Destroys all sessions for all users.

Source

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

Hooks

apply_filters( ‘session_token_manager’, string $session )

Filters the class name for the session token manager.

Changelog

VersionDescription
4.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.