LLMS_Access_Plan::get_free_pricing_text( string $format = 'html' )
Get a string to use for 0 dollar amount prices rather than 0
Parameters Parameters
- $format
-
(string) (Optional) format to display the price in
Default value: 'html'
Return Return
(string)
Source Source
File: includes/models/model.llms.access.plan.php
$text = __( 'FREE', 'lifterlms' ); if ( 'html' === $format ) { $text = '<span class="lifterlms-price">' . $text . '</span>'; } elseif ( 'float' === $format ) { $text = 0.00; } /** * Filter the text displayed when a plan has no price. * * @since 3.0.0 * @version 3.0.0 * * @param string $text Displayed text. * @param LLMS_Access_Plan $this The access plan instance. */ return apply_filters( "llms_get_free_{$this->model_post_type}_pricing_text", $text, $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |