Skip to main content

Product

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

Query parameters

  • category_id - Filter by category term ids
    Type: array

  • id - Same as include
    Type: array, integer

  • vendor_id - Filter by Vendor id(s)
    Type: array, string

  • vendor_slug - Filter by Vendor slug(s)
    Type: array, string

Fields

  • files - Downloadable files. Returns one or more values, depending on whether product has variable prices or not. Returns a Loop.

  • is_variable - Whether product has variable pricing. If yes, the "pricing" field is to be used to grab price

  • price - Product display price (either raw or sale price). Might be irrelevant if product has variable pricing

  • pricing - Product pricing. Returns one or more values, depending on whether product has variable prices or not. Returns a Loop.

  • purchase_link - Edd download purchase link - generates the Purchase or Add to Cart buttons

  • raw_price - Product raw price. Might be irrelevant if product has variable pricing

  • sale_price - Product sale price (whether product is on sale or not). Might be irrelevant if product has variable pricing

  • sku - Product sku

  • type - EDD product type

  • vendor - Product vendor. Returns a Loop of "edd_vendor" type.