Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Program Categories

if ( ! function_exists( 'hm_register_tax_program_categories' ) ) {

// Register Custom Taxonomy
function hm_register_tax_program_categories() {

	$labels = array(
		'name'                       => _x( 'Program Categories', 'Taxonomy General Name', 'hm_program_categories' ),
		'singular_name'              => _x( 'Program Category', 'Taxonomy Singular Name', 'hm_program_categories' ),
		'menu_name'                  => __( 'Program Categories', 'hm_program_categories' ),
		'all_items'                  => __( 'All Program Categories', 'hm_program_categories' ),
		'parent_item'                => __( 'Parent Program Category', 'hm_program_categories' ),
		'parent_item_colon'          => __( 'Parent Program Category:', 'hm_program_categories' ),
		'new_item_name'              => __( 'New Program Category Name', 'hm_program_categories' ),
		'add_new_item'               => __( 'Add New Program Category', 'hm_program_categories' ),
		'edit_item'                  => __( 'Edit Program Category', 'hm_program_categories' ),
		'update_item'                => __( 'Update Program Category', 'hm_program_categories' ),
		'view_item'                  => __( 'View Program Category', 'hm_program_categories' ),
		'separate_items_with_commas' => __( 'Separate Program Categories with commas', 'hm_program_categories' ),
		'add_or_remove_items'        => __( 'Add or remove Program Categories', 'hm_program_categories' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'hm_program_categories' ),
		'popular_items'              => __( 'Popular Program Categories', 'hm_program_categories' ),
		'search_items'               => __( 'Search Program Categories', 'hm_program_categories' ),
		'not_found'                  => __( 'Not Found', 'hm_program_categories' ),
		'no_terms'                   => __( 'No Program Categories', 'hm_program_categories' ),
		'items_list'                 => __( 'Program Categories list', 'hm_program_categories' ),
		'items_list_navigation'      => __( 'Program Categories list navigation', 'hm_program_categories' ),
	);
	$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( 'program_category', array( 'program' ), $args );

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

}