WPML
add_filter( 'wcml_currencies_without_cents', 'the_callback_function' );
유형
filter
카테고리
다중 통화 기능
WooCommerce Multilingual 버전
4.0.0

설명

  • 센트가 없는 통화 배열을 필터링합니다.
  • 기본적으로 이 배열에는 다음 통화가 포함됩니다:

    array('JPY', 'TWD', 'KRW', 'BIF', 'BYR', 'CLP', 'GNF', 'ISK', 'KMF', 'PYG', 'RWF', 'VUV', 'XAF', 'XOF', 'XPF');

인수

이 필터에 전달되는 매개변수는 currencies 하나뿐입니다.
$currencies
(array) 센트 단위가 없는 통화 배열입니다.

사용 예시

예제
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;
}

wcml_custom_prices_fields_labels, wcml_is_cache_enabled_for_switching_currency, wcml_geolocation_get_user_country, wcml_user_store_strategy, wcml_rounded_price, wcml_product_custom_prices, wcml_custom_prices_strings, wcml_switch_currency, wcml_custom_prices_fields, wcml_multi_currency_ajax_actions

모든 다중 통화 기능 훅 24개 →