Skip to main content

Membership

For loop type woo_membership, here are the query parameters and fields.

Query parameters

  • count - Limit number of results, or -1 for all
    Type: number

  • order - Order
    Type: string - Default: desc

  • orderby - Order by
    Type: string, array - Default: name

  • status - Status
    Type: string, array - Default: publish

Fields

  • access_length - Plan access length (human readable)

  • access_method - Plan access method

  • active - Whether current user has an active membership plan of this type

  • email_content - Plan email content

  • formatted_name - Formatted Name

  • id - ID

  • members - Returns a UserLoop of active members of this membership plan

  • memberships - Returns a Loop of related user membership objects for this membership plan

  • name - Name

  • restricted_content - Restricted content

  • restricted_products - Restricted products

  • status - Status