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>
Popularity: 1% [?]
Did you like this? If so, please bookmark it, about it, and subscribe to the blog RSS feed.
We have 3 responses.





on September 25th, 2009 at 12:26 pm
great post thank you
on December 16th, 2009 at 12:37 am
thank you very much. usefull article
on April 27th, 2010 at 10:41 am
a very successful site. thank the maker. Issues are also a useful article, good job.