LLMS_Order::get_last_transaction( array|string $status = 'any', array|string $type = 'any' )
Retrieve the last (most recent) transaction processed for the order
Description Description
Parameters Parameters
- $status
-
(Optional) filter by status (see transaction statuses)
Default value: 'any'
- $type
-
(Optional) filter by type [recurring|single|trial]
Default value: 'any'
Return Return
(obj|false) instance of the LLMS_Transaction or false if none found
Source Source
File: includes/models/model.llms.order.php
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |