eKumba – Categorias cursos
if ( ! function_exists( 'ekumba_categorias_curso_taxonomy' ) ) {
// Register Custom Taxonomy
function ekumba_categorias_curso_taxonomy() {
$labels = array(
'name' => _x( 'Categorías de curso', 'Taxonomy General Name', 'the7mk2' ),
'singular_name' => _x( 'Categoría de curso', 'Taxonomy Singular Name', 'the7mk2' ),
'menu_name' => __( 'Categorías de cursos', 'the7mk2' ),
'all_items' => __( 'Todos', 'the7mk2' ),
'parent_item' => __( 'Superior', 'the7mk2' ),
'parent_item_colon' => __( 'Superior:', 'the7mk2' ),
'new_item_name' => __( 'Nueva categoría', 'the7mk2' ),
'add_new_item' => __( 'Agregar nueva categoría', 'the7mk2' ),
'edit_item' => __( 'Editar categoría', 'the7mk2' ),
'update_item' => __( 'Actualizar categoría', 'the7mk2' ),
'view_item' => __( 'Ver categoría', 'the7mk2' ),
'separate_items_with_commas' => __( 'Separar categorías con coma', 'the7mk2' ),
'add_or_remove_items' => __( 'Agregar o eliminar categorías', 'the7mk2' ),
'choose_from_most_used' => __( 'Elegir entre las más usadas', 'the7mk2' ),
'popular_items' => __( 'Categorías populares', 'the7mk2' ),
'search_items' => __( 'Buscar categorías de cursos', 'the7mk2' ),
'not_found' => __( 'No encontrado', 'the7mk2' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
);
register_taxonomy( 'categorias_curso', array( 'cursos' ), $args );
}
add_action( 'init', 'ekumba_categorias_curso_taxonomy', 0 );
}