Home Forums Plugin Support WP User Frontend (Free Version) Builtin membership function

This topic is: resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Tareq Hasan 5 years, 9 months ago.

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



    I was wondering, if there is any function that allows me to check if a user has purchased a membership or not. What i want to do is to simply display some content if a membership has been purchased.

    For example

    if(has_membership('something')) { //display stuff here }

    Thank you.


    Tareq Hasan
    Post count: 2831

    Sorry, there isn't any helper function like this yet. The membership information are stored in the user meta field. Check the subscription file and has_post_error function, you'll get the idea and you can create your own function.

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

The topic ‘Builtin membership function’ is closed to new replies.