Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Features

if ( ! function_exists( 'gp_features' ) ) {

// Register Custom Taxonomy
function gp_features() {

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

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

}