Skip to content
Docs
Get RestroPress

Filter

rpress_currencies

Updated
On this page

Filters the list of supported currencies.

Returns currency codes mapped to display names. Add a code here to make it selectable in the store settings.

Parameters#

ParameterTypeDescription
$currenciesarrayCurrency names keyed by ISO code.

Return value#

array. Currency names keyed by code.

Example#

function my_currencies( $currencies ) {
	$currencies['XOF'] = __( 'West African CFA franc (CFA)', 'my-textdomain' );
	return $currencies;
}
add_filter( 'rpress_currencies', 'my_currencies' );

Source#

Applied in:

  • includes/rp-core-functions.php (line 2053), in rpress_get_currencies()

See also#

Was this page helpful?