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