Skip to main content

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 discount

  • code - Retrieve the code used to apply the discount

  • excluded_products - Retrieve the downloads that are excluded from having this discount code applied. Returns a Loop.

  • expiration - Retrieve the end date

  • id - ID of post object

  • is_not_global - Retrieve the property determining if a discount is not global

  • is_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 code

  • min_price - Retrieve the minimum spend required for the discount to be satisfied

  • name - Retrieve the name of the discount

  • product_condition - Product condition

  • start - Retrieve the start date

  • status - Retrieve the status of the discount

  • status_label - Retrieves the status label of the discount

  • type - Retrieve the type of discount

  • uses - Retrieve the uses for the discount code