Destroys all sessions for all users.
Source
public static function drop_sessions() {
delete_metadata( 'user', 0, 'session_tokens', false, true );
}
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |
CARVIEW |
Destroys all sessions for all users.
public static function drop_sessions() {
delete_metadata( 'user', 0, 'session_tokens', false, true );
}
Uses | Description |
---|---|
delete_metadata()wp-includes/meta.php | Deletes metadata for the specified object. |
Version | Description |
---|---|
4.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.