License
For loop type edd_license
, here are the query parameters and fields.
Query parameters
count
- Posts per page
Type: numbercreation_date
- Creation exact date. Will ignore creation_start and creation_end if specified
Type: datecreation_end
- Creation end date
Type: datecreation_start
- Creation start date
Type: dateexpiration_date
- Creation start date or 'any' for any non-lifetime expiration. Will ignore expiration_start and expiration_end if specified
Type: date, stringexpiration_end
- Creation start date
Type: dateexpiration_start
- Creation start date
Type: dateid
- Restrict to ids
Type: arraykey
- License key
Type: stringorder
- Order: ASC or DESC
Type: string - Default: ASCorderby
- Order by field
Type: string - Default: nameparent
- Post parent
Type: number, string0payment_id
- Get licenses for specific payment. Ignores all other arguments if specified.
Type: number, stringsearch
- Search
Type: stringstatus
- License status
Type: array, stringuser
- User ID, name, or "current". Ignores all other arguments if specified.
Type: number, string
Fields
activation_count
- Activation countactivations
- Gets license activations. Returns a loop.child_licenses
- List of EDD_SL_License objects for the child licenses. Returns a loop.default_activation_count
- Default activation countdisplay_status
- License display statusdownload
- Gets associated download. Returns a loop.expiration
- Expiration date or 'lifetime'id
- License IDis_at_limit
- Returns if the license is at its activation limitis_expired
- Check if license is expiredlicense_length
- Get the string equivalent of the length of the license. For example: +1yearslicense_term
- Used to display the term for a given license to the userlogs
- Gets license logs. Returns a loop.name
- License namerenewal_url
- License renewal urlunsubscribe_url
- License unsubscribe url