LLMS_Order::get_initial_price( $price_args = array(), $format = 'html' )
Get the initial payment amount due on checkout
Description Description
This will always be the value of "total" except when the product has a trial.
Return Return
(mixed)
Source Source
File: includes/models/model.llms.order.php
public function get_initial_price( $price_args = array(), $format = 'html' ) {
if ( $this->has_trial() ) {
$price = 'trial_total';
} else {
$price = 'total';
}
return $this->get_price( $price, $price_args, $format );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |