EI – Basecamp Chapter Taxonomy
// Register Custom Taxonomy
function basecamp_chapter_taxonomy() {
$labels = array(
'name' => 'Chapters',
'singular_name' => 'Chapter',
'menu_name' => 'Chapters',
'all_items' => 'All Chapters',
'parent_item' => 'Parent Chapter',
'parent_item_colon' => 'Parent Chapter:',
'new_item_name' => 'New Chapter Name',
'add_new_item' => 'Add New Chapter',
'edit_item' => 'Edit Chapter',
'update_item' => 'Update Chapter',
'view_item' => 'View Chapter',
'separate_items_with_commas' => 'Separate chapters with commas',
'add_or_remove_items' => 'Add or remove chapters',
'choose_from_most_used' => 'Choose from the most used',
'popular_items' => 'Popular Chapters',
'search_items' => 'Search Chapters',
'not_found' => 'Not Found',
'no_terms' => 'No chapters',
'items_list' => 'Chapters list',
'items_list_navigation' => 'Chapters list navigation',
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
'show_in_rest' => true,
);
register_taxonomy( 'chapter', array( 'basecamp' ), $args );
}
add_action( 'init', 'basecamp_chapter_taxonomy', 0 );