wp_logout()
Logs the current user out.
Source
File: wp-includes/pluggable.php
function wp_logout() {
wp_destroy_current_session();
wp_clear_auth_cookie();
/**
* Fires after a user is logged-out.
*
* @since WP-1.5.0
*/
do_action( 'wp_logout' );
}
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |