Builtin membership function

This topic contains 1 reply and 2 voices, and was last updated by Tareq Hasan 10 years, 7 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
September 4, 2013 at 2:37 am 7768
Tareq Hasan Hello, 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.
September 5, 2013 at 12:18 am 7794
Tareq Hasan Tareq Hasan

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 1 Posts - 1 through 1 (of 1 total)