wp_destroy_all_sessions()

In this article

Removes all session tokens for the current user from the database.

Source

*
* @param int    $user_id ID of the newly created user.
* @param string $notify  Optional. Type of notification that should happen. Accepts 'admin'
*                        or an empty string (admin only), 'user', or 'both' (admin and user).

Changelog

VersionDescription
4.0.0Introduced.

User Contributed Notes

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