apply_filters( 'wpml_element_type', string $element_type )
- النوع
- filter
- الفئة
- متفرقات
- إصدار WPML
- 3.2
الوصف
يصفي نوع عنصر WordPress (نوع المنشور، مصطلح التصنيف، التعليق) عن طريق إضافة بادئة WPML وهي ‘post_’، أو ‘tax_’ (للوسوم الافتراضية استخدم ‘post_tag’)، أو لا شيء لـ ‘comment’ كما هو مستخدم في جدول قاعدة البيانات icl_translations.
الوسطاء
- $element_type
- (سلسلة نصية) (مطلوب) يقبل comment، وpost، وpage، وattachment، وnav_menu_item، و{custom post key}، وnav_menu، وcategory، وpost_tag، و{custom taxonomy key}
مثال على الاستخدام
مثال
//$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