- This topic has 2 replies, 2 voices, and was last updated 10 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember – Php code to check if a post is protected
Tagged: members, protected posts
Is there anyway to access is a post is protected or not from logged in users? I want to display a lock icon for protected posts but I can’t seem to figure out how to determine if a post is protected using php.
I did look over this post https://support.tipsandtricks-hq.com/forums/topic/emember-is-it-possible-to-check-if-post-is-protected but it was no help in what I am looking for.
Sorry my question was typed out slightly wrong, should of been,
Is there anyway to find out if a post is protected wether the user is logged in or not?