LLMS_Order::get_transactions( array $args = array() )
Retrieve an array of transactions associated with the order according to supplied arguments
Description Description
Parameters Parameters
- $args
-
(Optional) Hash of query argument data, ultimately passed to a WP_Query.
- 'status'
(string|string[]) Transaction post status or array of transaction post status. Defaults to "any". - 'type'
(string|string[]) Transaction types or array of transaction types. Defaults to "any". Accepts "recurring", "single", or "trial". - 'per_page'
(int) Number of transactions to include in the return. Default50
. - 'paged'
(int) Result set page number. - 'order'
(string) Result set order. Default "DESC". Accepts "DESC" or "ASC". - 'orderby'
(string) Result set ordering field. Default "date".
Default value: array()
- 'status'
Return Return
(array)
Source Source
File: includes/models/model.llms.order.php
Changelog Changelog
Version | Description |
---|---|
3.37.6 | Add additional return property, total , which returns the total number of found transactions. |
3.10.0 | Unknown. |
3.0.0 | Introduced. |