Filter
rpress_currency
On this page
Filters the store currency code.
The default is the currency setting, falling back to USD. Used throughout pricing, formatting and gateway code. Currency switcher plugins hook here.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$currency | string | Currency code. |
Return value#
string. The currency code.
Example#
function my_currency( $currency ) {
return $currency;
}
add_filter( 'rpress_currency', 'my_currency' );
Source#
Applied in:
includes/rp-core-functions.php(line 2064), inrpress_get_currency()
See also#
Was this page helpful?
