get_lifterlms_currency_name( string $currency = '' )

Get the name of a currency


Parameters Parameters

$currency

(string) (Optional) A currency code.

Default value: ''


Top ↑

Return Return

(string)


Top ↑

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 );
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.