woocommerce_get_order_currency
Использование
add_filter( 'woocommerce_get_order_currency', 'wp_kama_woocommerce_get_order_currency_filter', 10, 2 ); /** * Function for `woocommerce_get_order_currency` filter-hook. * * @param $currency * @param $that * * @return */ function wp_kama_woocommerce_get_order_currency_filter( $currency, $that ){ // filter... return $currency; }
- $currency
- -
- $that
- -
Где вызывается хук
woocommerce_get_order_currency
woocommerce/includes/legacy/abstract-wc-legacy-order.php 757
return apply_filters( 'woocommerce_get_order_currency', $this->get_currency(), $this );