Codex tools: Log in
Contents |
Log the current user out, by destroying the current user session.
<?php wp_logout(); ?>
This function does not accept any parameters.
None.
<p><?php wp_logout(); ?></p>
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()