LLMS_Access_Plan::get_price( string $key, array $price_args = array(), string $format = 'html' )
Getter for price strings with optional formatting options
Description Description
Parameters Parameters
- $key
-
(string) (Required) property key
- $price_args
-
(array) (Optional) array of arguments that can be passed to llms_price()
Default value: array()
- $format
-
(string) (Optional) format conversion method [html|raw|float]
Default value: 'html'
Return Return
(mixed)
Source Source
File: includes/models/model.llms.access.plan.php
public function get_price( $key, $price_args = array(), $format = 'html' ) { $price = $this->get( $key ); if ( $price <= 0 ) { $ret = $this->get_free_pricing_text( $format ); } else { $ret = parent::get_price( $key, $price_args, $format ); } return apply_filters( 'llms_plan_get_price', $ret, $key, $price_args, $format, $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: