Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Corethemes Feature

// Register Custom Taxonomy
function corethemes_features() {

	$labels = array(
		'name'                       => _x( 'Features', 'Taxonomy General Name', 'corethemes' ),
		'singular_name'              => _x( 'Feature', 'Taxonomy Singular Name', 'corethemes' ),
		'menu_name'                  => __( 'Themes', 'corethemes' ),
		'all_items'                  => __( 'All Features', 'corethemes' ),
		'parent_item'                => __( 'Parent Feature', 'corethemes' ),
		'parent_item_colon'          => __( 'Parent Feature:', 'corethemes' ),
		'new_item_name'              => __( 'New Feature', 'corethemes' ),
		'add_new_item'               => __( 'Add New Feature', 'corethemes' ),
		'edit_item'                  => __( 'Edit Feature', 'corethemes' ),
		'update_item'                => __( 'Update Feature', 'corethemes' ),
		'view_item'                  => __( 'View Feature', 'corethemes' ),
		'separate_items_with_commas' => __( 'Separate features with commas', 'corethemes' ),
		'add_or_remove_items'        => __( 'Add or remove Featuers', 'corethemes' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'corethemes' ),
		'popular_items'              => __( 'Popular Features', 'corethemes' ),
		'search_items'               => __( 'Search Features', 'corethemes' ),
		'not_found'                  => __( 'Not Found', 'corethemes' ),
		'no_terms'                   => __( 'No features', 'corethemes' ),
		'items_list'                 => __( 'Features list', 'corethemes' ),
		'items_list_navigation'      => __( 'Features list navigation', 'corethemes' ),
	);
	$rewrite = array(
		'slug'                       => 'theme_feature',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'corethemes_feature', array( 'corethemes_theme' ), $args );

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