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