WPML
wpml_is_translated_taxonomy
유형
filter
WPML 버전
3.5.2

설명

택소노미가 번역 가능으로 설정되었는지 여부에 따라 TRUE 또는 FALSE를 반환합니다.

인수

apply_filters( 'wpml_is_translated_taxonomy', null, string $taxonomy )

$taxonomy

(문자열) (필수) 확인할 택소노미입니다. category, post_tag, nav_menu 또는 기타 기본 택소노미일 수 있습니다.

사용자 정의 분류체계의 경우 사용자 정의 분류체계의 슬러그를 추가하세요.

사용 예시

예제
//$is_translated will be TRUE if the taxonomy is set to be translatable and FALSE if it is not set to be translatable
$is_translated = apply_filters( 'wpml_is_translated_taxonomy', NULL, 'categories' )

wpml_element_translation_type, wpml_is_translated_post_type, wpml_master_post_from_duplicate, wpml_post_duplicates, wpml_element_has_translations

모든 콘텐츠의 번역 상태 확인 훅 6개 →