rem_all_currencies
This filter can be used to add custom currencies to the list of currencies or modify the existing ones.
Arguments
- Currencies [Array]
Example
The following code will add a new currency with the symbol UF and title Unidad de Fomento in that list, just put this code inside your theme’s functions.php file.
add_filter( 'rem_all_currencies', 'add_my_currency' ); add_filter( 'rem_all_currency_symbols', 'add_my_currency_symbol' ); function add_my_currency($currencies){ $currencies['UF'] = __( 'Unidad de Fomento', 'real-estate-manager' ); return $currencies; } function add_my_currency_symbol($symbol){ $symbol['UF'] = 'UF'; return $symbol; }