get_lifterlms_price_format()
Get a format string that can be passed to printf or sprintf to format prices as per user-defined price formatting settings
Description Description
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. |
User Contributed Notes User Contributed Notes
Permalink: