WP_User_Meta_Session_Tokens::drop_sessions() WordPress Method

The WP_User_Meta_Session_Tokens::drop_sessions() method drops all session tokens for the user. This is typically called when a user logs out.

WP_User_Meta_Session_Tokens::drop_sessions() #

Destroys all sessions for all users.


Source

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

	public static function drop_sessions() {
		delete_metadata( 'user', 0, 'session_tokens', false, true );
	}


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.