Title: Is protected page function
Last modified: December 17, 2018

---

# Is protected page function

 *  Resolved [Gustavo Cieslar](https://wordpress.org/support/users/gustavodc/)
 * (@gustavodc)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/is-protected-page-function/)
 * Hi!
 * I’m using SM and bought the Form Builder addon, excelent plugin!
 * I need to detect programmatically if a page is protected or not, so I can add
   a new class to the content wrapper. Something like a “is_protected_page()” function,
   so I can know whether the current page has any protection applied or not, regardless
   the usser is logged in or not.
 * I can’t find this feature in the documentation.
 * Thanks a lot!

Viewing 1 replies (of 1 total)

 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/is-protected-page-function/#post-10999774)
 * Hi, please create a [premium addon support](https://simple-membership-plugin.com/premium-addon-support/)
   ticket.
 * Thank you

Viewing 1 replies (of 1 total)

The topic ‘Is protected page function’ is closed to new replies.

 * ![](https://ps.w.org/simple-membership/assets/icon-128x128.png?rev=974529)
 * [Simple Membership](https://wordpress.org/plugins/simple-membership/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-membership/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-membership/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-membership/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-membership/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-membership/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/is-protected-page-function/#post-10999774)
 * Status: resolved