Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Is protected page function

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 59525

Trending Articles