Codex tools: Log in / create account
Contents |
Log the current user out, by destroing the current user session.
<?php wp_logout(); ?>
This function does not accept any parameters.
<p><?php wp_logout(); ?></p>
Since: 2.5.0
wp_logout() is located in wp-includes/pluggable.php.
is_user_logged_in, wp_login_url, wp_logout_url, wp_lostpassword_url, wp_logout, wp_loginout, wp_register