Page 1 of 1

Shortcode to check if post has been purchased

PostPosted: January 9th, 2012, 1:22 pm
by zim_wayne
Hi,

I just wanted to say thank you for a really fantastic plugin. I have used some other paid membership plugins in the past and none of them are as easy to configure or give an end user experience that rivals s2.

Please could you let me know if there is a shortcode or a php function that I could call to find out whether a registered member has purchased a post/page before?

What I would like to do is create a table showing members what posts they have purchased and give them access to those posts and also display those posts that are still available to purchase.

Many thanks again
Wayne

Re: Shortcode to check if post has been purchased

PostPosted: January 11th, 2012, 1:00 pm
by Raam Dev
Hi Wayne, thank you for the KUDOS! Glad to hear you're enjoying s2Member. :)

Regarding your question: You can do that using Advanced/PHP Query Conditionals. Please see examples #1, #2, and #5 under WP Admin -> s2Member -> API / Scripting -> Advanced/PHP Query Conditionals.