Languages: English • Italiano • 日本語 (Add your language)
Log the current user out, by destroying the current user session.
<?php wp_logout(); ?>
This function does not accept any parameters.
None.
<?php wp_logout(); ?>
Since: 2.5.0
wp_logout() is located in wp-includes/pluggable.php
.
Login Tags:
is_user_logged_in(),
wp_login_form(),
wp_loginout(),
wp_logout(),
wp_register()
Login URLs:
wp_login_url(),
wp_logout_url(),
wp_lostpassword_url(),
wp_registration_url()