Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Review Categories

if ( ! function_exists( 'register_product_categories' ) ) {

// Register Custom Taxonomy
function register_product_categories() {

	$labels = array(
		'name'                       => _x( 'Categories', 'Taxonomy General Name', 'hiking-lady' ),
		'singular_name'              => _x( 'Category', 'Taxonomy Singular Name', 'hiking-lady' ),
		'menu_name'                  => __( 'Category', 'hiking-lady' ),
		'all_items'                  => __( 'All Categories', 'hiking-lady' ),
		'parent_item'                => __( 'Parent Category', 'hiking-lady' ),
		'parent_item_colon'          => __( 'Parent Category:', 'hiking-lady' ),
		'new_item_name'              => __( 'New Category Name', 'hiking-lady' ),
		'add_new_item'               => __( 'Add New Category', 'hiking-lady' ),
		'edit_item'                  => __( 'Edit Category', 'hiking-lady' ),
		'update_item'                => __( 'Update Category', 'hiking-lady' ),
		'view_item'                  => __( 'View Category', 'hiking-lady' ),
		'separate_items_with_commas' => __( 'Separate categories with commas', 'hiking-lady' ),
		'add_or_remove_items'        => __( 'Add or remove categories', 'hiking-lady' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'hiking-lady' ),
		'popular_items'              => __( 'Popular Categories', 'hiking-lady' ),
		'search_items'               => __( 'Search Categories', 'hiking-lady' ),
		'not_found'                  => __( 'Not Found', 'hiking-lady' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'product_category', array( 'product_reviews' ), $args );

}

// Hook into the 'init' action
add_action( 'init', 'register_product_categories', 0 );

}