• Hi.

    How i can check user sub in php code?

    I need output content if sub active

    like this

    if($sub_active) {

    // content for active sub }

    else {

    // you not sub

    }

Viewing 1 replies (of 1 total)
  • Plugin Support Alberto Ruggiero

    (@witcher83)

    Hello @vinnard,

    you could use this function to check if a user has a specific subscription active:

    YWSBS_Subscription_User::has_subscription( $user_id, $id_of_the_product_with_subscription )
Viewing 1 replies (of 1 total)
  • The topic ‘Check active sub’ is closed to new replies.