WP_User_Meta_Session_Tokens::drop_sessions()public staticWP 4.0.0

Destroys all sessions for all users.

Метод класса: WP_User_Meta_Session_Tokens{}

No Hooks.

Return

null. Nothing.

Usage

$result = WP_User_Meta_Session_Tokens::drop_sessions();

Changelog

Since 4.0.0 Introduced.

Код WP_User_Meta_Session_Tokens::drop_sessions() WP 6.1.1

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