woocommerce_currency
Get Base Currency Code.
Usage
add_filter( 'woocommerce_currency', 'wp_kama_woocommerce_currency_filter' ); /** * Function for `woocommerce_currency` filter-hook. * * @param $option * * @return */ function wp_kama_woocommerce_currency_filter( $option ){ // filter... return $option; }
- $option
- -
Where the hook is called
woocommerce_currency
woocommerce/includes/wc-core-functions.php 474
return apply_filters( 'woocommerce_currency', get_option( 'woocommerce_currency' ) );