anz_product_cat
// Register Custom Taxonomy
function product_cat() {
$labels = array(
'name' => _x( 'Categorías de producto', 'Taxonomy General Name', 'gea_product' ),
'singular_name' => _x( 'Categoría de producto', 'Taxonomy Singular Name', 'gea_product' ),
'menu_name' => __( 'Categoría de producto', 'gea_product' ),
'all_items' => __( 'Todos las categorías', 'gea_product' ),
'parent_item' => __( 'Categoría Padre', 'gea_product' ),
'parent_item_colon' => __( 'Categoría Padre:', 'gea_product' ),
'new_item_name' => __( 'Nueva categoría', 'gea_product' ),
'add_new_item' => __( 'Agregar nueva categoría', 'gea_product' ),
'edit_item' => __( 'Editar categoría', 'gea_product' ),
'update_item' => __( 'Actualizr categoría', 'gea_product' ),
'view_item' => __( 'Ver categorñia', 'gea_product' ),
'separate_items_with_commas' => __( 'Separate items with commas', 'gea_product' ),
'add_or_remove_items' => __( 'Add or remove items', 'gea_product' ),
'choose_from_most_used' => __( 'Choose from the most used', 'gea_product' ),
'popular_items' => __( 'Popular Items', 'gea_product' ),
'search_items' => __( 'Search Items', 'gea_product' ),
'not_found' => __( 'Not Found', 'gea_product' ),
'no_terms' => __( 'No items', 'gea_product' ),
'items_list' => __( 'Items list', 'gea_product' ),
'items_list_navigation' => __( 'Items list navigation', 'gea_product' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'show_in_rest' => true,
);
register_taxonomy( 'product_cat', array( 'product' ), $args );
}
add_action( 'init', 'product_cat', 0 );