wc_currency_settings хук-фильтрWC 1.0

phpcs:ignore

Использование

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
-

Где вызывается хук

Settings::get_currency_settings()
wc_currency_settings
Loader::get_currency_settings()
wc_currency_settings
woocommerce/src/Internal/Admin/Settings.php 93-104
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() ),
	)
);
woocommerce/src/Internal/Admin/Loader.php 537-548
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() ),
	)
);

Где используется хук в WooCommerce

Использование не найдено.