Up to 50 percent off

WPUF Subscription – PHP to check what type of sub they have

This topic contains 6 reply and 3 voices, and was last updated by Ben 9 years, 11 months ago
Viewing 6 Posts - 1 through 6 (of 6 total)
Author Posts
November 25, 2014 at 1:52 am 31127
Ben Howdy! We have 3 types of subscriptions. Platinum, Gold, and Silver. I want to display different PHP on a page depending on what type of package they have. Can you please provide the PHP to check "if logged in user has silver subscription then execute this code"? I tried digging through the subscription.php class in wpuf and wasn't able to figure it out on my own. Thank you so much! Ben
November 26, 2014 at 12:47 pm 31228
towhid towhid

Hello Ben,

Currently we do not have this feature available. I have discussed about this feature with our developer team. They will check and implements this feature in our next update. If you need this urgent you can hire a developer to develop this.

Thank You. 🙂

November 27, 2014 at 8:00 am 31271
Ben Ben

Really? There’s no flag to check for this? Somewhere you check for the subscription package purchased in your plugin, why can I not use that to check it myself? All I need is your help to tell me what to check for. 🙂

November 27, 2014 at 12:45 pm 31284
towhid towhid

Hello Ben,

Please create a new page and put this shortcode [wpuf_sub_info]. The current user will see his subscription pack and let me know the result.

Thank You 🙂

November 28, 2014 at 1:33 am 31312
Ben Ben

No, no, no. You are not reading the request properly. I am not trying to tell the subscriber what type of subscription they have.

I am trying to show the subscriber content, based on the subscription they purchased.

If silver member, show this text.

If gold member, show this text.

If platinum member, show this text.

Thanks

December 1, 2014 at 12:44 pm 31466
Sekander Badsha Sekander Badsha

Hello Ben,

There is a user meta named _wpuf_subscription_pack and a parameter inside that named pack_id. So you can call them and cross match the id of your packs. If an user have bought a pack matching the id, then you can echo the content.

We do not provide support for customization. But you are always welcome to ask for direction.

🙂

December 5, 2014 at 1:51 am 31869
Ben Ben

Thanks! That was the information I needed.

Ben

Viewing 6 Posts - 1 through 6 (of 6 total)