Taxonomy to Local School
Taxonomia para unidades
if ( ! function_exists( 'local_taxonomy' ) ) { // Register Custom Taxonomy function local_taxonomy() { $labels = array( 'name' => _x( 'Unidades', 'Taxonomy General Name', 'twentytwenty' ), 'singular_name' => _x( 'Unidade', 'Taxonomy Singular Name', 'twentytwenty' ), 'menu_name' => __( 'Unidades', 'twentytwenty' ), 'all_items' => __( 'Todas as unidades', 'twentytwenty' ), 'parent_item' => __( 'Parent Item', 'twentytwenty' ), 'parent_item_colon' => __( 'Parent Item:', 'twentytwenty' ), 'new_item_name' => __( 'Nova unidade', 'twentytwenty' ), 'add_new_item' => __( 'Adicionar nova unidade', 'twentytwenty' ), 'edit_item' => __( 'Editar unidade', 'twentytwenty' ), 'update_item' => __( 'Atualizar unidade', 'twentytwenty' ), 'view_item' => __( 'Visualizar unidade', 'twentytwenty' ), 'separate_items_with_commas' => __( 'Separate items with commas', 'twentytwenty' ), 'add_or_remove_items' => __( 'Adicionar ou Remover unidade', 'twentytwenty' ), 'choose_from_most_used' => __( 'Choose from the most used', 'twentytwenty' ), 'popular_items' => __( 'Popular Items', 'twentytwenty' ), 'search_items' => __( 'Procurar unidade', 'twentytwenty' ), 'not_found' => __( 'Não encontrando', 'twentytwenty' ), 'no_terms' => __( 'No items', 'twentytwenty' ), 'items_list' => __( 'Lista de unidades', 'twentytwenty' ), 'items_list_navigation' => __( 'Items list navigation', 'twentytwenty' ), ); $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( 'local', array( 'cursos' ), $args ); } add_action( 'init', 'local_taxonomy', 0 ); }