wc_currency_settings
The wc_currency_settings hook
Использование
add_filter( 'wc_currency_settings', 'wp_kama_wc_currency_settings_filter' );
/**
* Function for `wc_currency_settings` filter-hook.
*
* @param $array
*
* @return
*/
function wp_kama_wc_currency_settings_filter( $array ){
// filter...
return $array;
}
- $array
- -
Список изменений
| С версии 6.5.0 | Введена. |
Где вызывается хук
wc_currency_settings
woocommerce/src/Internal/Admin/Settings.php 100-111
return apply_filters( 'wc_currency_settings', array( 'code' => $code, 'precision' => wc_get_price_decimals(), 'symbol' => html_entity_decode( get_woocommerce_currency_symbol( $code ) ), 'symbolPosition' => get_option( 'woocommerce_currency_pos' ), 'decimalSeparator' => wc_get_price_decimal_separator(), 'thousandSeparator' => wc_get_price_thousand_separator(), 'priceFormat' => html_entity_decode( get_woocommerce_price_format() ), ) );