Tax
// Register Custom Taxonomy
function vgy_products_tax_age() {
$labels = array(
'name' => _x( 'Idades', 'Taxonomy General Name', 'vgy_products' ),
'singular_name' => _x( 'Idades', 'Taxonomy Singular Name', 'vgy_products' ),
'menu_name' => __( 'Idades', 'vgy_products' ),
'all_items' => __( 'Todas as Idades', 'vgy_products' ),
'parent_item' => __( 'Parent Item', 'vgy_products' ),
'parent_item_colon' => __( 'Parent Item:', 'vgy_products' ),
'new_item_name' => __( 'Novas Idades', 'vgy_products' ),
'add_new_item' => __( 'Adicionar Idades', 'vgy_products' ),
'edit_item' => __( 'Editar Idades', 'vgy_products' ),
'update_item' => __( 'Atualizar Idades', 'vgy_products' ),
'view_item' => __( 'Ver Idades', 'vgy_products' ),
'separate_items_with_commas' => __( 'Separar Items por Virgulas', 'vgy_products' ),
'add_or_remove_items' => __( 'Adicionar ou Remover Idades', 'vgy_products' ),
'choose_from_most_used' => __( 'Escolher das mais Utilizadas', 'vgy_products' ),
'popular_items' => __( 'Idades Populares', 'vgy_products' ),
'search_items' => __( 'Pesquisar Idades', 'vgy_products' ),
'not_found' => __( 'Não Encontrados', 'vgy_products' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
);
register_taxonomy( 'idades', array( 'vgy_products' ), $args );
}
add_action( 'init', 'vgy_products_tax_age', 0 );