Skip to main content

Commission

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

Query parameters

  • date_paid - Filter by date paid in Y-M-D format, "today", "X days ago" and other values compatible with strtotime()
    Type: string

  • date_paid_compare - Date paid comparison - One of: "before", "before_inclusive", "after", "after_inclusive"
    Type: string

  • order - Order: ASC or DESC
    Type: string - Default: ASC

  • orderby - Order by field
    Type: string - Default: id

  • status - Commission status: unpaid, paid, revoked
    Type: array, string

  • user - Get commission by user ID(s) or "current"
    Type: array, string

Fields

  • all - Show data of all custom fields (for development purpose)

  • amount - Commission amount

  • currency - Commission currency

  • date_created - Commission date created

  • date_paid - Commission date paid

  • download_id - Commission product id

  • id - Commission ID

  • payment_id - Commission payment id

  • rate - Commission rate

  • status - Commission status : unpaid, paid, revoked

  • type - Commission type

  • user_id - Commission User ID