- This topic has 2 replies, 2 voices, and was last updated 13 years, 9 months 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 › PHP Protected Option?
I have a need to hard code some of the protected content using custom posts. Can you provide me with some PHP code that I can use to protect content?
it is not taking the closing shortcode.
A WordPress shortcode only work in WordPress posts or pages. When you are in PHP you can easily find out the membership level of a particular member and put conditions around it however you like. The following post will give you some example code that lets you find out the membership level of a member:
https://support.tipsandtricks-hq.com/forums/topic/how-to-get-member-id-and-his-current-status