rcp_{currency}_symbol

Note: This is part of the developer docs and is considered custom code.
Unfortunately, we cannot provide support for custom code at this time as we do not have the additional resources that would be necessary to provide support for custom code.

If you need assistance with this, please reach out to our list of consultants for further assistance:
https://codeable.io/developers/restrict-content-pro/
Filters the symbol for a currency.
Parameters:

$symbol (string) – Currency symbol.

$currency (string) – Currency code (uppercase).

Example:
This changes the USD currency symbol from “$” to “USD” :
function ag_rcp_usd_symbol( $symbol, $currency ) {
return ‘USD’;
}
add_filter( ‘rcp_usd_symbol’, ‘ag_rcp_usd_symbol’, 10, 2 );

Have more questions?

Submit a request