function hocwp_term_meta_different_name_field($taxonomies = array()) { global $pagenow; if ('edit-tags.php' == $pagenow || 'term.php' == $pagenow) { if (!hocwp_array_has_value($taxonomies)) { $taxonomies = get_taxonomies(array('public' => true)); } $taxonomies = apply_filters('hocwp_term_different_name_field_taxonomies', $taxonomies); hocwp_exclude_special_taxonomies($taxonomies); if (!hocwp_array_has_value($taxonomies)) { $taxonomies = array('category'); } $meta = new HOCWP_Meta('term'); $meta->set_taxonomies($taxonomies); $meta->add_field(array('id' => 'different_name', 'label' => __('Different Name', 'hocwp-theme'))); $meta->init(); } }