Press Release Category
// Register Custom Taxonomy
function ap_press_release_topic() {
$labels = array(
'name' => 'Press Release Categories',
'singular_name' => 'Press Release Category',
'menu_name' => 'Press Release Categories',
'all_items' => 'All Press Release Categories',
'parent_item' => 'Parent Press Release Category',
'parent_item_colon' => 'Parent Item:',
'new_item_name' => 'New Press Release Category',
'add_new_item' => 'Add New Press Release Category',
'edit_item' => 'Edit Press Release Category',
'update_item' => 'Update Press Release Category',
'view_item' => 'View Press Release Category',
'separate_items_with_commas' => 'Separate items with commas',
'add_or_remove_items' => 'Add or remove items',
'choose_from_most_used' => 'Choose from the most used',
'popular_items' => 'Popular Items',
'search_items' => 'Search Items',
'not_found' => 'Not Found',
'no_terms' => 'No items',
'items_list' => 'Items list',
'items_list_navigation' => 'Items list navigation',
);
$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( 'press-release-topic', array( 'press-release' ), $args );
}
add_action( 'init', 'ap_press_release_topic', 0 );