Create a Logout button on your WordPress blog
January 6, 2009 · Print This Article
Especially in the case of a multi-author blog, it can be really useful to include a logout link on your theme.
To create a “Logout” link on your WordPress blog, simply paste the following code on your theme:
<a href="<?php echo wp_logout_url(); ?>">Logout</a>
Please note that this will work with WordPress 2.7+ only. If you haven’t switched to WP 2.7 yet, the following code will do (almost) the same job:
<a href="/wp-login.php?action=logout">logout</a>






















[...] and bug fixing as follows: 1) Wordpress 2.7 no longer allows me to approve comments 2) The post Create a Logout button on your WordPress blog - livexp.net 01/06/2009 Especially in the case of a multi-author blog, it can be really useful to [...]