Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Easy Business Pages Category

if ( ! function_exists( 'hm_register_tax_bizpage_categories' ) ) {

// Register Custom Taxonomy
function hm_register_tax_bizpage_categories() {

	$labels = array(
		'name'                       => _x( 'Business Categories', 'Taxonomy General Name', 'bizpage_categories' ),
		'singular_name'              => _x( 'Business Category', 'Taxonomy Singular Name', 'bizpage_categories' ),
		'menu_name'                  => __( 'Business Categories', 'bizpage_categories' ),
		'all_items'                  => __( 'All Business Categories', 'bizpage_categories' ),
		'parent_item'                => __( 'Parent Business Category', 'bizpage_categories' ),
		'parent_item_colon'          => __( 'Parent Business Category:', 'bizpage_categories' ),
		'new_item_name'              => __( 'New Business Category Name', 'bizpage_categories' ),
		'add_new_item'               => __( 'Add New Business Category', 'bizpage_categories' ),
		'edit_item'                  => __( 'Edit Business Category', 'bizpage_categories' ),
		'update_item'                => __( 'Update Business Category', 'bizpage_categories' ),
		'view_item'                  => __( 'View Business Category', 'bizpage_categories' ),
		'separate_items_with_commas' => __( 'Separate Business Categories with commas', 'bizpage_categories' ),
		'add_or_remove_items'        => __( 'Add or remove Business Categories', 'bizpage_categories' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'bizpage_categories' ),
		'popular_items'              => __( 'Popular Business Categories', 'bizpage_categories' ),
		'search_items'               => __( 'Search Business Categories', 'bizpage_categories' ),
		'not_found'                  => __( 'Not Found', 'bizpage_categories' ),
		'no_terms'                   => __( 'No Business Categories', 'bizpage_categories' ),
		'items_list'                 => __( 'Business Categories list', 'bizpage_categories' ),
		'items_list_navigation'      => __( 'Business Categories list navigation', 'bizpage_categories' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'query_var'                  => 'bizcat',
		'show_in_rest'               => true,
	);
	register_taxonomy( 'bizpage_category', array( 'bizpage' ), $args );

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

}