get_lifterlms_currency_name( string $currency = '' )

Get the name of a currency


Description Description


Parameters Parameters

$currency

(string) (Optional) a currency code

Default value: ''


Top ↑

Return Return

(string)


Top ↑

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

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.