Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

CCDB Channel

// Register Custom Taxonomy
function eph_ccdb_channel_generatetaxonomy() {

	$labels = array(
		'name'                       => _x( 'Channels', 'Taxonomy General Name', 'eph' ),
		'singular_name'              => _x( 'Channel', 'Taxonomy Singular Name', 'eph' ),
		'menu_name'                  => __( 'Channel', 'eph' ),
		'all_items'                  => __( 'All Channels', 'eph' ),
		'parent_item'                => __( 'Parent Channel', 'eph' ),
		'parent_item_colon'          => __( 'Parent Channel:', 'eph' ),
		'new_item_name'              => __( 'New Channel', 'eph' ),
		'add_new_item'               => __( 'Add New Channel', 'eph' ),
		'edit_item'                  => __( 'Edit Channel', 'eph' ),
		'update_item'                => __( 'Update Channel', 'eph' ),
		'view_item'                  => __( 'View Channel', 'eph' ),
		'separate_items_with_commas' => __( 'Separate channels with commas', 'eph' ),
		'add_or_remove_items'        => __( 'Add or remove channels', 'eph' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'eph' ),
		'popular_items'              => __( 'Popular Channels', 'eph' ),
		'search_items'               => __( 'Search Channels', 'eph' ),
		'not_found'                  => __( 'Not Found', 'eph' ),
		'no_terms'                   => __( 'No channels', 'eph' ),
		'items_list'                 => __( 'Channels list', 'eph' ),
		'items_list_navigation'      => __( 'Channels list navigation', 'eph' ),
	);
	$rewrite = array(
		'slug'                       => 'channels',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => false,
		'rewrite'                    => $rewrite,
		'show_in_rest'               => true,
	);
	register_taxonomy( 'eph_ccdb_channel', array( 'service' ), $args );

}
add_action( 'init', 'eph_ccdb_channel_generatetaxonomy', 0 );