Tax Vendor Terms
if ( ! function_exists( 'metc_tax_vendor_terms' ) ) {
// Register Custom Taxonomy
function metc_tax_vendor_terms() {
$labels = array(
'name' => _x( 'Vendor Terms', 'Taxonomy General Name', 'twentyseventeen_child' ),
'singular_name' => _x( 'Vendor Term', 'Taxonomy Singular Name', 'twentyseventeen_child' ),
'menu_name' => __( 'Vendor Term', 'twentyseventeen_child' ),
'all_items' => __( 'All Vendor Terms', 'twentyseventeen_child' ),
'parent_item' => __( 'Parent Vendor Term', 'twentyseventeen_child' ),
'parent_item_colon' => __( 'Parent Vendor Term:', 'twentyseventeen_child' ),
'new_item_name' => __( 'New Vendor Term Name', 'twentyseventeen_child' ),
'add_new_item' => __( 'Add New Vendor Term', 'twentyseventeen_child' ),
'edit_item' => __( 'Edit Vendor Term', 'twentyseventeen_child' ),
'update_item' => __( 'Update Vendor Term', 'twentyseventeen_child' ),
'view_item' => __( 'View Vendor Term', 'twentyseventeen_child' ),
'separate_items_with_commas' => __( 'Separate vendor terms with commas', 'twentyseventeen_child' ),
'add_or_remove_items' => __( 'Add or remove vendor terms', 'twentyseventeen_child' ),
'choose_from_most_used' => __( 'Choose from the most used', 'twentyseventeen_child' ),
'popular_items' => __( 'Popular Vendor Terms', 'twentyseventeen_child' ),
'search_items' => __( 'Search vendor terms', 'twentyseventeen_child' ),
'not_found' => __( 'Not Found', 'twentyseventeen_child' ),
'no_terms' => __( 'No vendor terms', 'twentyseventeen_child' ),
'items_list' => __( 'Vendor Terms list', 'twentyseventeen_child' ),
'items_list_navigation' => __( 'Vendor Terms list navigation', 'twentyseventeen_child' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
);
register_taxonomy( 'vendor_term', array( 'vendor_account' ), $args );
}
add_action( 'init', 'metc_tax_vendor_terms', 0 );
}