WPML
apply_filters( 'wpml_sub_setting', mixed|bool $default, string $key, string $sub_key )
유형
filter
카테고리
기타
WPML 버전
3.2

설명

WPML 하위 설정 값을 반환합니다.

인수

$default
(mixed|bool) (필수) 설정 키가 존재하지 않을 경우 반환할 값입니다. 사용하지 않는 경우 false로 설정하세요.
$key
(문자열) (필수) 하위 키가 속한 설정 이름 키입니다.
$sub_key
(문자열) (필수) 값을 반환할 하위 키입니다.

사용 예시

예제
// $my_book_translation_option will return the translation option configured for the custom post type 'book'
$my_book_translation_option = apply_filters( 'wpml_sub_setting', false, 'custom_posts_sync_option', 'book' );

// $my_author_translation_option will return the translation option configured for the custom taxonomy 'author'
$my_author_translation_option = apply_filters( 'wpml_sub_setting', false, 'taxonomies_sync_option', 'author' );

icl_ls_languages, wpml_sync_custom_field_copied_value, wpml_ls_enable_ajax_navigation, wpml_element_type, wpml_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개 →