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'
Return Return
(mixed)
Source Source
File: includes/models/model.llms.access.plan.php
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. |