Skip to content
Docs
Get RestroPress

Filter

rpress_currency

Updated
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#

ParameterTypeDescription
$currencystringCurrency 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), in rpress_get_currency()

See also#

Was this page helpful?