apply_filters( 'wcml_price_currency', mixed $empty_value )
- 유형
- filter
- 카테고리
- 다중 통화 기능
- WooCommerce Multilingual 버전
- 3.5
설명
- 프런트엔드에 설정된 현재 통화를 가져옵니다.
- 이 필터는 프런트엔드에서 사용할 수 있습니다.
인수
- $empty_value
- (mixed) (필수) 일반적으로 이는 필터가 수정할 값입니다. 여기서는 아무것도 필터링하지 않으므로 이 값을 NULL로 설정해야 합니다. 이 인수를 통해 필터의 함수가 전체 인수 목록을 받을 수 있습니다.
사용 예시
기본 예제
$current_currency = apply_filters('wcml_price_currency', NULL );
관련 훅
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_currencies_without_cents, wcml_product_custom_prices, wcml_custom_prices_strings, wcml_switch_currency, wcml_custom_prices_fields