LLMS_Order::get_revenue( string $type = 'net' )
Gets the total revenue of an order
Parameters Parameters
- $type
-
(string) (Optional) Revenue type [grosse|net]. Default is 'net'.
Default value: 'net'
Return Return
(float)
Source Source
File: includes/models/model.llms.order.php
);
}
/**
* Retrieve the date when a trial will end
*
* @since 3.0.0
*
* @param string $format Optional. Date return format. Default is 'Y-m-d H:i:s'.
* @return string
*/
public function get_trial_end_date( $format = 'Y-m-d H:i:s' ) {
if ( ! $this->has_trial() ) {
$trial_end_date = '';
} else {
// Retrieve the saved end date.
$trial_end_date = $this->get_date( 'date_trial_end', $format );
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.1.3 | Handle legacy orders. |
| 3.0.0 | Introduced. |