BACK TO DIRECTORY

Protected Posts Logout Button

by Nate Reist

4.9
(13 ratings)

This plugin simply adds a logout button to the content of any password protected post. Sometimes clients want a password protected page to share information with privileged individuals and the default 10 days for the cookie to expire is too long for their liking. So I wrote a little plugin to do this with AJAX and set the cookie to expire immediately, well actually 10 days in the past.

  • Works logged in or out as a WordPress user.
  • Uses the same functionality WordPress uses to set post cookies.
  • Has a simple settings page to make everything easier.
  • Allows you to alert user they have logged out.

Screenshots

Admin Screen for simple settings

Admin Screen for simple settings

Optional alert

Optional alert

Button added to the content

Button added to the content

Plugin Details

Active Installs
1K+
Total Downloads
34,204
Version
1.4.6
Requires WP
2.8
Requires PHP
Tested Up To
6.1.12
Added
2012-05-16
Last Updated
2023-02-16 12:46am GMT

Ratings

5
12
4
1
3
0
2
0
1
0