Tag Archives: password

WordPress Plugin: Logout Password Protected Posts

Latest version: 0.1 – Released August 16th, 2011

Description

There is no built-in way for your visitors to "log out" of password protected posts once they've entered the password. Even logged in users cannot log out of password protected posts by logging out of their account. This plugin solves that problem by providing a link for your visitors which will log them out of password protected posts when clicked.

Installation

  1. Unzip the ZIP file and drop the folder straight into your wp-content/plugins directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Add <?php do_action('posts_logout_link'); ?> somewhere in your theme.

Those people who are logged in to password protected posts will now see a link to log out.

FAQ

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.

Download

Version 0.1 ZIP file from downloads.wordpress.org

Any comments, questions, queries, suggestions, complaints, etc, please leave a comment!

WordPress Plugin: Global Post Password

Latest version: 1.4.2- Released July 4th, 2010
  • Add a body class of 'has-post-password' to individual posts when a user has entered the correct password.

Description

Enables you to set a global password for all your password-protected posts, and switch password protection on or off from the writing screen with just one click.

If you publish a lot of password-protected posts (or even if you don’t), you may end up using the same password for every post. With this plugin you can define a global post password from your ‘Settings-> Privacy’ menu, and switch password protection on or off from the writing screen. When you change the global password, all password-protected posts are automatically updated with the new password.

  1. global-post-password screenshot 1

    Switching a post's password protection on or off.

  2. global-post-password screenshot 2

    The settings screen.

Note that this plugin does not automatically enable password-protection on every post. It allows you to use a global password for every post that you choose to password-protect.

Installation

  • Unzip the ZIP file and drop the folder straight into your wp-content/plugins/ directory.
  • Activate the plugin through the ‘Plugins’ menu in WordPress.
  • Visit the ‘Settings -> Privacy’ menu in WordPress and set a global post password.

Now whenever you write or edit a post (or page) you’ll be able to switch password-protection on or off with one click, instead of having to manually type in a password for each post. You can change the password whenever you like.

More Information

Please see the plugin’s page on the WordPress Plugin Directory for more information, including FAQs.

Download

ZIP file from downloads.wordpress.org

Any comments, questions, queries, suggestions, complaints, etc, please leave a comment below!