Discount
For loop type edd_discount
, here are the query parameters and fields.
Query parameters
status
- Status
Type: string, array - Default: active,inactive,expired
Fields
amount
- Retrieve the amount of discountcode
- Retrieve the code used to apply the discountexcluded_products
- Retrieve the downloads that are excluded from having this discount code applied. Returns a Loop.expiration
- Retrieve the end dateid
- ID of post objectis_not_global
- Retrieve the property determining if a discount is not globalis_single_use
- Retrieve the usage limit per limit (if the discount can only be used once per customer)max_uses
- Retrieve the maximum uses for the discount codemin_price
- Retrieve the minimum spend required for the discount to be satisfiedname
- Retrieve the name of the discountproduct_condition
- Product conditionstart
- Retrieve the start datestatus
- Retrieve the status of the discountstatus_label
- Retrieves the status label of the discounttype
- Retrieve the type of discountuses
- Retrieve the uses for the discount code