the game sports taxonomy
// Register Custom Taxonomy
function sport_taxonomy() {
$labels = array(
'name' => _x( 'Sports', 'Taxonomy General Name', 'text_domain' ),
'singular_name' => _x( 'Sport', 'Taxonomy Singular Name', 'text_domain' ),
'menu_name' => __( 'Sport', 'text_domain' ),
'all_items' => __( 'All Sports', 'text_domain' ),
'parent_item' => __( 'Parent Sport', 'text_domain' ),
'parent_item_colon' => __( 'Parent Sport:', 'text_domain' ),
'new_item_name' => __( 'New Sport Name', 'text_domain' ),
'add_new_item' => __( 'Add New Sport', 'text_domain' ),
'edit_item' => __( 'Edit Sport', 'text_domain' ),
'update_item' => __( 'Update Sport', 'text_domain' ),
'separate_items_with_commas' => __( 'Separate sports with commas', 'text_domain' ),
'search_items' => __( 'Search Sports', 'text_domain' ),
'add_or_remove_items' => __( 'Add or remove Sports', 'text_domain' ),
'choose_from_most_used' => __( 'Choose from the most used sports', 'text_domain' ),
'not_found' => __( 'Not Found', 'text_domain' ),
);
$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( 'sport', array( 'event' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'sport_taxonomy', 0 );