Filter
rpress_currencies
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#
| Parameter | Type | Description |
|---|---|---|
$currencies | array | Currency 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), inrpress_get_currencies()
See also#
Was this page helpful?
