get_lifterlms_currency_name( string $currency = '' )
Get the name of a currency
Description Description
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 ]; } 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. |
User Contributed Notes User Contributed Notes
Permalink: