Plugin Directory

Logout Password Protected Posts

Provides a template tag for a link for visitors to log out of password protected posts. Add do_action('posts_logout_link') to your theme whe

I've added the template tag to my theme but can't see the link. What's up?

Ensure that you have entered a password for a password protected post. The link will not show up if you're not logged into a password protected post.

Can I change the default text in the link?

Sure. Add a second parameter to the template tag with the text you'd like instead. For example: <?php do_action('posts_logout_link','Log out!'); ?>

For those who want even more control, you can also add a third paramter which will be used as the class name on the link element.

Requires: 2.7 or higher
Compatible up to: 3.2.1
Last Updated: 2011-8-16
Downloads: 3,072

Average Rating

3 stars
(7 ratings)

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,4,4
0,1,0
100,1,1