get_lifterlms_currency_name( string $currency = '' )
Get the name of a currency
Parameters Parameters
- $currency
-
(string) (Optional) A currency code.
Default value: ''
Return Return
(string)
Source Source
File: includes/functions/llms.functions.currency.php
function get_lifterlms_currency_name( $currency = '' ) {
if ( ! $currency ) {
$currency = get_lifterlms_currency();
}
$name = '';
$currencies = get_lifterlms_currencies();
if ( isset( $currencies[ $currency ] ) ) {
$name = $currencies[ $currency ];
}
/**
* Filters the name of the given currency.
*
* @since 3.0.0
*
* @param string $name Currency name.
* @param string $currency Currency code.
*/
return apply_filters( 'lifterlms_currency_name', $name, $currency );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |