- availability:
-
WooCommerce Multilingual Version: 4.0.0
- description:
-
- Filter the array of currencies without cents.
- By default, this array includes the following currencies:
array('JPY', 'TWD', 'KRW', 'BIF', 'BYR', 'CLP', 'GNF', 'ISK', 'KMF', 'PYG', 'RWF', 'VUV', 'XAF', 'XOF', 'XPF');
- type:
- filter
- category:
- Multi-currency Feature
- parameters:
-
add_filter( 'wcml_currencies_without_cents', 'the_callback_function' );
There is only one parameter passed to this filter: currencies.
- $currencies
- (array) The array of currencies without cents.
- hook example usage:
-
Example
add_filter( 'wcml_currencies_without_cents', 'wcmlhook_currencies_without_cents' ); function wcmlhook_currencies_without_cents( $currencies ) { $currencies[] = 'ABC' // Add a new currency to this array return $currencies; }