Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

taxonomy_verbs

if ( ! function_exists( 'rbs_taxonomy_verb' ) ) {

// Register Custom Taxonomy
function rbs_taxonomy_verb() {

	$labels = array(
		'name'                       => _x( 'Verbs', 'Taxonomy General Name', 'taxonomy_verb' ),
		'singular_name'              => _x( 'Verb', 'Taxonomy Singular Name', 'taxonomy_verb' ),
		'menu_name'                  => __( 'Verb', 'taxonomy_verb' ),
		'all_items'                  => __( 'All Verbs', 'taxonomy_verb' ),
		'parent_item'                => __( 'Parent Verb', 'taxonomy_verb' ),
		'parent_item_colon'          => __( 'Parent Verb:', 'taxonomy_verb' ),
		'new_item_name'              => __( 'New Verb Name', 'taxonomy_verb' ),
		'add_new_item'               => __( 'Add New Verb', 'taxonomy_verb' ),
		'edit_item'                  => __( 'Edit Verb', 'taxonomy_verb' ),
		'update_item'                => __( 'Update Verb', 'taxonomy_verb' ),
		'view_item'                  => __( 'View Verb', 'taxonomy_verb' ),
		'separate_items_with_commas' => __( 'Separate verbswith commas', 'taxonomy_verb' ),
		'add_or_remove_items'        => __( 'Add or remove verbs', 'taxonomy_verb' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'taxonomy_verb' ),
		'popular_items'              => __( 'Popular Verbs', 'taxonomy_verb' ),
		'search_items'               => __( 'Search Verbs', 'taxonomy_verb' ),
		'not_found'                  => __( 'Not Found', 'taxonomy_verb' ),
		'no_terms'                   => __( 'No verbs', 'taxonomy_verb' ),
		'items_list'                 => __( 'Verbs list', 'taxonomy_verb' ),
		'items_list_navigation'      => __( 'Verbs list navigation', 'taxonomy_verb' ),
	);
	$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( 'verb', array( 'grammar' ), $args );

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

}