WPML
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

すべてのその他フック(30件) →