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
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | 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. |