Title: Password protected posts
Last modified: August 20, 2018

---

# Password protected posts

 *  Resolved [piwel](https://wordpress.org/support/users/piwel/)
 * (@piwel)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/password-protected-posts-9/)
 * Hi
 * On line 197 of the plugin, you use `stripslashes($_COOKIE['wp-postpass_'.COOKIEHASH])!
   = $post->post_password)` to test if one has access to the post content.
 * This seems not to be working properly on first load of the page, could it be 
   replace by `post_password_required( $post )` for it to work ?
 * Thanks by advance
 * PiwEL
 * [https://codex.wordpress.org/Function_Reference/post_password_required](https://codex.wordpress.org/Function_Reference/post_password_required)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Marios Alexandrou](https://wordpress.org/support/users/marios-alexandrou/)
 * (@marios-alexandrou)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/password-protected-posts-9/#post-10609784)
 * That makes sense. I’ll deploy and update soon. Thanks.
 *  Thread Starter [piwel](https://wordpress.org/support/users/piwel/)
 * (@piwel)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/password-protected-posts-9/#post-10609840)
 * Thanks for your reactivity and answer 🙂 Have a good day

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Password protected posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/improved-include-page_709cd7.svg)
 * [Improved Include Page](https://wordpress.org/plugins/improved-include-page/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/improved-include-page/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/improved-include-page/)
 * [Active Topics](https://wordpress.org/support/plugin/improved-include-page/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/improved-include-page/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/improved-include-page/reviews/)

## Tags

 * [password](https://wordpress.org/support/topic-tag/password/)

 * 2 replies
 * 2 participants
 * Last reply from: [piwel](https://wordpress.org/support/users/piwel/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/password-protected-posts-9/#post-10609840)
 * Status: resolved