Home Forums Plugin Support WP User Frontend Pro WPUF Subscription – PHP to check what type of sub they have

This topic is: resolved

This topic contains 6 replies, has 3 voices, and was last updated by  Ben 4 years, 6 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #31127

    Ben
    Member
    Post count: 14

    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

    #31228

    towhid
    Participant
    Post count: 4505

    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. ๐Ÿ™‚

    #31271

    Ben
    Member
    Post count: 14

    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. ๐Ÿ™‚

    #31284

    towhid
    Participant
    Post count: 4505

    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 ๐Ÿ™‚

    #31312

    Ben
    Member
    Post count: 14

    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

    #31466

    Sekander Badsha
    Member
    Post count: 2067

    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.

    ๐Ÿ™‚

    #31869

    Ben
    Member
    Post count: 14

    Thanks! That was the information I needed.

    Ben

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘WPUF Subscription – PHP to check what type of sub they have’ is closed to new replies.