Hub Tax
if ( ! function_exists( 'custom_taxonomy_hub' ) ) {
// Register Custom Taxonomy
function custom_taxonomy_hub() {
$labels = array(
'name' => _x( 'Hubs', 'Taxonomy General Name', 'homebase' ),
'singular_name' => _x( 'Hub', 'Taxonomy Singular Name', 'homebase' ),
'menu_name' => __( 'Hubs', 'homebase' ),
'all_items' => __( 'All Hubs', 'homebase' ),
'parent_item' => __( 'Parent Hub', 'homebase' ),
'parent_item_colon' => __( 'Parent Hub:', 'homebase' ),
'new_item_name' => __( 'New Hub Name', 'homebase' ),
'add_new_item' => __( 'Add New Hub', 'homebase' ),
'edit_item' => __( 'Edit Hub', 'homebase' ),
'update_item' => __( 'Update Hub', 'homebase' ),
'view_item' => __( 'View Hub', 'homebase' ),
'separate_items_with_commas' => __( 'Separate hubs with commas', 'homebase' ),
'add_or_remove_items' => __( 'Add or remove hubs', 'homebase' ),
'choose_from_most_used' => __( 'Choose from the most used', 'homebase' ),
'popular_items' => __( 'Popular Hubs', 'homebase' ),
'search_items' => __( 'Search Hubs', 'homebase' ),
'not_found' => __( 'Not Found', 'homebase' ),
'no_terms' => __( 'No hubs', 'homebase' ),
'items_list' => __( 'Hubs list', 'homebase' ),
'items_list_navigation' => __( 'Hubs list navigation', 'homebase' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'show_in_rest' => true,
);
register_taxonomy( 'hub', array( 'spoke' ), $args );
}
add_action( 'init', 'custom_taxonomy_hub', 0 );
}