apply_filters( 'wpml_element_type', string $element_type )
תיאור
מסנן סוג אלמנט של WordPress (סוג פוסט, מונח טקסונומיה, תגובה) על ידי הוספת קידומת WPML ‘post_’, ‘tax_’ (עבור תגיות ברירת מחדל השתמש ב־'post_tag’), או כלום עבור ‘comment’ כפי שמשמש בטבלת מסד הנתונים icl_translations.
ארגומנטים
$element_typestringנדרשמקבל 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' );