User Membership
For loop type woo_user_membership
, here are the query parameters and fields.
Query parameters
items
- Pre-populated list of items
Type: arrayorder
- Order
Type: string - Default: descorderby
- Order by
Type: string - Default: nameuser
- User ID, name, or "current"
Type: number, stringuser_id
- User ID, name, or "current"
Type: number, string, array
Fields
can_be_renewed
- Checks whether the user membership can be renewed by the user.cancelled_date
- Gets the membership cancelled datetime.end_date
- Membership toid
- IDis_active
- Checks if a membership is currently in active status.is_cancelled
- Checks if the membership has been cancelled.is_delayed
- Checks if the membership has a delayed activation.is_expired
- Checks if the membership has been expired.is_paused
- Checks if the membership is paused.notes
- Return the membership's notesorder_id
- Gets the order id that granted accesspaused_date
- Gets the membership paused datetime.plan_id
- Gets the associated plan IDproduct_id
- Gets the product id that granted accessstart_date
- Membership fromstatus
- Membership statustotal_active_time
- Returns the total amount of time the membership has been active since its start datetotal_time
- Returns the total active or inactive time of a membershiptype
- Returns the user membership type.user
- User object corresponding to membership