WPML
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

ฮุก ฟีเจอร์หลายสกุลเงิน ทั้งหมด 24 รายการ →