Home Forums Plugin Support Others DOKAN Need Subscription PHP for If Statement

This topic contains 1 reply, has 2 voices, and was last updated by  Nayem 3 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #46186

    Post count: 5


    I need to get the Subsciption Package of a Seller.

    We have 3 subscriptions

    Silver, Gold, Elite

    If the User has an ELITE subscription I need to show the Reports tab if ‘else' (any other or NO subscription) hide the Reports tab.

    I need this similar to the standard wordpress ‘is_user_logged_in()' and ‘current_user_can()'

    I found this on your forums
    ‘_wpuf_subscription_pack and a parameter inside that named pack_id'

    but am having troubles impmlementing it into this code

    ‘if ( is_page(‘reports') && ! is_user_logged_in() && ! [need subscription package check here] ) {‘

    Thank you.


    Post count: 6480

    Hello Bradley,

    Your request is not clear for me. can you please tell me that where you want to put this code and what is the purpose?. Though we do not provide support for customization but if it takes little bit of code then i will help you.


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

The topic ‘DOKAN Need Subscription PHP for If Statement’ is closed to new replies.