get_lifterlms_price_format()
Get a format string that can be passed to printf or sprintf to format prices
Description Description
The format string is created using user-defined price formatting settings.
Return Return
(string)
Source Source
File: includes/functions/llms.functions.currency.php
function get_lifterlms_price_format() { $pos = get_option( 'lifterlms_currency_position', 'left' ); $format = '%1$s%2$s'; switch ( $pos ) { case 'left': $format = '%1$s%2$s'; break; case 'right': $format = '%2$s%1$s'; break; case 'left_space': $format = '%1$s %2$s'; break; case 'right_space': $format = '%2$s %1$s'; break; } return apply_filters( 'lifterlms_price_format', $format, $pos ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |