Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Meeting Categories

if ( ! function_exists( 'hm_register_tax_meeting_categories' ) ) {

// Register Custom Taxonomy
function hm_register_tax_meeting_categories() {

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

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

}