apply_filters( 'wpml_setting', mixed|bool $default, string $key )
- ประเภท
- filter
- หมวดหมู่
- เบ็ดเตล็ด
- เวอร์ชันของ WPML
- 3.2
คำอธิบาย
คืนค่าการตั้งค่าของ WPML
อาร์กิวเมนต์
- $default
- (mixed|bool) (จำเป็น) ค่าที่จะส่งคืนหากไม่มีคีย์การตั้งค่า กำหนดเป็น false หากไม่ได้ใช้งาน
- $key
- (สตริงข้อความ) (จำเป็น) คีย์ชื่อการตั้งค่าที่ต้องการส่งคืนค่า
ตัวอย่างการใช้งาน
ตัวอย่าง
// $is_wpml_configured will return TRUE if WPML is fully setup and FALSE if not. $is_wpml_configured = apply_filters( 'wpml_setting', false, 'setup_complete' );
ฮุกที่เกี่ยวข้อง
icl_ls_languages, wpml_sync_custom_field_copied_value, wpml_ls_enable_ajax_navigation, wpml_element_type, wpml_sub_setting, wpml_exclude_post_from_auto_translate, wpml_forms_config_ninja-forms, wpml_forms_config_wpforms, wpml_tf_feedback_open_link, wpml_translatable_user_meta_fields