LLMS_Access_Plan::get_initial_price( array $price_args = array(), LLMS_Coupon|int|null $coupon = null, string $format = 'float' )

Get the initial price due on checkout.


Description Description

Automatically accounts for Trials, sales, and coupon discounts.


Parameters Parameters

$price_args

(Optional) Arguments passed to the price getter function to generate the price.

Default value: array()

$coupon

(Optional) Coupon ID, object, or null if no coupon is being used.

Default value: null

$format

(Optional) Format the price to be returned. Options: html, raw, float (default).

Default value: 'float'


Top ↑

Return Return

(mixed)


Top ↑

Source Source

File: includes/models/model.llms.access.plan.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.40.0 Simplify logic by using new 4th argument ($coupon) of the get_price() method.
3.30.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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