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'


Top ↑

Return Return

(float)


Top ↑

Source Source

File: includes/models/model.llms.order.php

1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
    );
 
}
 
/**
 * 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 );


Top ↑

Changelog Changelog

Changelog
Version Description
3.1.3 Handle legacy orders.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.