Protected Posts Logout Button
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 thi
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 & previews.
- 01Upload pplb_logout_button.zip to the /wp-content/plugins/ directory
- 02Activate the plugin through the ‘Plugins’ menu in WordPress
- 03Customize your settings.
- 04Confirm it is working & you’re done!
Frequently asked questions.
The logout button shows up, but nothing happens when clicked, what’s wrong?
Does your theme have <?php wp_head(); ?> and <?php wp_footer(); ?> installed correctly? This plugin uses some javascript that gets embedded automatically in the header or footer, and requires it to work properly.