License loop
For loop type edd_license
, here are the available query arguments and fields.
Query arguments
-
count
- Posts per pageDefault:
-1
Type: number -
creation_date
- Creation exact date. Will ignore creation_start and creation_end if specifiedType: date
-
creation_end
- Creation end dateType: date
-
creation_start
- Creation start dateType: date
-
expiration_date
- Creation start date or 'any' for any non-lifetime expiration. Will ignore expiration_start and expiration_end if specifiedType: date, string
-
expiration_end
- Creation start dateType: date
-
expiration_start
- Creation start dateType: date
-
id
- Restrict to idsType: array
-
key
- License keyType: string
-
order
- Order: ASC or DESCDefault:
ASC
Type: string -
orderby
- Order by fieldDefault:
name
Type: string -
parent
- Post parentType: number, string
-
payment_id
- Get licenses for specific payment. Ignores all other arguments if specified.Type: number, string
-
search
- SearchType: string
-
status
- License statusType: array, string
-
user
- User ID, name, or "current". Ignores all other arguments if specified.Type: number, string
Fields
-
activation_count
- Activation count
-
activations
- 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 count
-
display_status
- License display status
-
download
- Gets associated download. Returns a loop.
-
expiration
- Expiration date or 'lifetime'
-
id
- License ID
-
is_at_limit
- Returns if the license is at its activation limit
-
is_expired
- Check if license is expired
-
license_length
- Get the string equivalent of the length of the license. For example: +1years
-
license_term
- Used to display the term for a given license to the user
-
logs
- Gets license logs. Returns a loop.
-
name
- License name
-
renewal_url
- License renewal url
-
unsubscribe_url
- License unsubscribe url