LLMS_Access_Plan::get_price_with_coupon( string $key, LLMS_Coupon|int $coupon_id, array $price_args = array(), string $format = 'html' )

Apply a coupon to a price


Description Description


Parameters Parameters

$key

(Required) Price to retrieve, "price", "sale_price", or "trial_price".

$coupon_id

(Required) Coupon object or post id.

$price_args

(Optional) arguments to be passed to llms_price().

Default value: array()

$format

(Optional) return format as passed to llms_price().

Default value: 'html'


Top ↑

Return Return

(mixed)


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.7.0 Unknown.
3.40.0 Use wp_strip_all_tags() in favor of strip_tags().
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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