How can I add a logout link to the new menu system in WP 3.0?
I know I can use the wp_logout_url(); php function within a template, but the menu system does not accept php content.
How can I add a logout link to the new menu system in WP 3.0?
I know I can use the wp_logout_url(); php function within a template, but the menu system does not accept php content.
I too am interested in this.
So am I, as I just need the logout function, not all the other links
Not too hard.
Assuming your WordPress install is from the root, link to:
/?action=logout&redirect_to=http://something.com
and replace "something.com" with the page on your site you want to redirect to.
If your WP is in a subfolder (e.g. http://something.com/blog/), then I assume you'd need to modify the link to:
/blog/?action=logout&redirect_to=http://something.com
but I haven't tried it.
Enjoy!
This topic has been closed to new replies.