Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Productify: Teaser Tax Category

if ( ! function_exists( 'productify_teaser_taxonomy_groups' ) ) {

// Register Custom Taxonomy
function productify_teaser_taxonomy_groups() {

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

}

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

}