Membership
For loop type lifter_membership
, here are the query parameters and fields.
Query parameters
access_plan
- Access Plan ID(s) assigned to a membership.
Type: string, arrayenrolled
- Current user is enrolled
Type: booleanhas_free_access_plan
- Membership has free access_plan.
Type: booleaninstructor
- Instructor ID(s) or "current" assigned to a membership.
Type: string, arrayis_purchasable
- Membership is purchasable(at least one access plan + at least one gateway enabled), "true"/"false" .
Type: booleanstudent
- Student ID(s) or "current" enrolled in a membership.
Type: string, array
Fields
access_plans
- Membership access plans.associated_posts
- List loop of associated posts with the membership - can contain membership restricted post, page, custom post, membership auto-enroll course, course that has at least one access plan with members-onlyauto_enroll_courses
- Children Loop of the auto enrollment coursescontent
- Membership contenthas_free_access_plan
- Membership has free access_plan.instructors
- Children Loop instructorsis_purchasable
- Membership is purchasable.membership_id
- Membership IDredirect_page_url
- Restricted Access Redirect - when a non-member attempts to access content restricted to the membershiprestriction_add_notice
- Whether or not to add an on screen message when content is restricted by the membershiprestriction_notice
- Restriction notice to displaysales_page_url
- The URL to a WP Page or Custom URL when sales page redirection is enabledstudent_count
- Retrieve the number of enrolled students in the membership.students
- Students Loop based on enrollment status in the membership.