tic
if ( ! function_exists( 'tic_taxonomy' ) ) {
// Register Custom Taxonomy
function tic_taxonomy() {
$labels = array(
'name' => _x( 'TIC', 'Taxonomy General Name', 'text_domain' ),
'singular_name' => _x( 'TIC', 'Taxonomy Singular Name', 'text_domain' ),
'menu_name' => __( 'TIC', 'text_domain' ),
'all_items' => __( 'TIC', 'text_domain' ),
'parent_item' => __( 'Articulos padre', 'text_domain' ),
'parent_item_colon' => __( 'Articulos padre:', 'text_domain' ),
'new_item_name' => __( 'Nuevo nombre del artículo', 'text_domain' ),
'add_new_item' => __( 'Agregar ítem nuevo', 'text_domain' ),
'edit_item' => __( 'Editar elemento', 'text_domain' ),
'update_item' => __( 'Actualizar artículo', 'text_domain' ),
'view_item' => __( 'Ver artículo', 'text_domain' ),
'separate_items_with_commas' => __( 'Editar elementos separados con comas', 'text_domain' ),
'add_or_remove_items' => __( 'Agregar o quitar artículos', 'text_domain' ),
'choose_from_most_used' => __( 'Elija entre los más utilizados', 'text_domain' ),
'popular_items' => __( 'Elementos más populares', 'text_domain' ),
'search_items' => __( 'Buscar elemento', 'text_domain' ),
'not_found' => __( 'Not Found', 'text_domain' ),
'no_terms' => __( 'No hay elementos', 'text_domain' ),
'items_list' => __( 'Lista de articulos', 'text_domain' ),
'items_list_navigation' => __( 'Lista de elementos de navegación', 'text_domain' ),
);
$rewrite = array(
'slug' => 'tic',
'with_front' => true,
'hierarchical' => false,
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'rewrite' => $rewrite,
);
register_taxonomy( 'TIC', array( 'empresas_post_type' ), $args );
}
add_action( 'init', 'tic_taxonomy', 0 );
}