Skip to content
Docs
Get RestroPress

Filter

rpress_currency_name

Updated
On this page

Filters the display name of a currency.

The name comes from the supported currency list and falls back to the currency code. Note that only the name is passed to the filter.

Parameters#

ParameterTypeDescription
$namestringCurrency name.

Return value#

string. The currency name.

Example#

function my_currency_name( $name ) {
	return $name;
}
add_filter( 'rpress_currency_name', 'my_currency_name' );

Source#

Applied in:

  • includes/rp-core-functions.php (line 2190), in rpress_get_currency_name()

See also#

Was this page helpful?