Subscription
For loop type woo_subscription
, here are the query parameters and fields.
Query parameters
customer_id
- User ID
Type: number, stringorder
- Order
Type: string - Default: descorderby
- Order by
Type: string - Default: nameproduct_id
- The post ID of a WC_Product_Subscription, WC_Product_Variable_Subscription or WC_Product_Subscription_Variation object
Type: numberstatus
- Status
Type: string, array - Default: active,cancelled,expireduser
- User ID, name, or "current"
Type: number, stringuser_id
- User ID, name, or "current"
Type: number, string, array
Fields
billing_interval
- Get billing intervalbilling_period
- Get billing periodcompleted_payment_count
- Get the number of payments completed for a subscriptiondate_completed
- Get date_completeddate_created
- Date createddate_paid
- Get date_paid prop of most recent related order that has been paiddate_to_display
- Returns a string representation of a subscription date in the site's time (i.e. not GMT/UTC timezone)date_trial_end
- Trial Endend
- Subscription endfailed_payment_count
- Get the number of payments failedformatted_line_subtotal
- Gets line subtotal - formatted for displayformatted_order_total
- Gets order total - formatted for displayid
- IDitems
- Return an OrderItem Loop of items within this subscriptionlast_order_date_created
- Last order date creatednext_payment
- Next paymentstatus
- Statussubscriber
- Returns a Loop with the corresponding subscribed usersubtotal_to_display
- Gets subtotal - subtotal is shown before discounts, but with localised taxessuspension_count
- Get suspension countswitch_data
- Get the switch datatotal_initial_payment
- Returns the total amount charged at the outset of the Subscriptiontrial_period
- Get trial period