apply_filters( 'wpml_element_type', string $element_type )
- 유형
- filter
- 카테고리
- 기타
- WPML 버전
- 3.2
설명
icl_translations db 테이블에서 사용되는 것처럼 WPML 접두사 ‘post_’, ‘tax_’(기본 태그의 경우 ‘post_tag’ 사용)를 추가하거나 ‘comment’에는 아무것도 추가하지 않는 방식으로 WordPress 요소 유형(포스트 유형, 택소노미 용어, 댓글)을 필터링합니다.
인수
- $element_type
- (문자열) (필수) comment, post, page, attachment, nav_menu_item, {사용자 정의 글 키}, nav_menu, category, post_tag, {사용자 정의 택소노미 키}를 허용합니다.
사용 예시
예제
//$wpml_element_type will return 'post_attachment' $wpml_element_type = apply_filters( 'wpml_element_type', 'attachment' );
관련 훅
icl_ls_languages, wpml_sync_custom_field_copied_value, wpml_ls_enable_ajax_navigation, wpml_setting, 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