Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

part_of_speech

if ( ! function_exists( 'part_of_speech1000' ) ) {

// Register Custom Taxonomy
function part_of_speech1000() {

	$labels = array(
		'name'                       => _x( 'Part of Speechs', 'Taxonomy General Name', 'part_of_speech1000' ),
		'singular_name'              => _x( 'Part of Speech', 'Taxonomy Singular Name', 'part_of_speech1000' ),
		'menu_name'                  => __( 'Part of Speech', 'part_of_speech1000' ),
		'all_items'                  => __( 'All Part of Speechs', 'part_of_speech1000' ),
		'parent_item'                => __( 'Parent Part of Speech', 'part_of_speech1000' ),
		'parent_item_colon'          => __( 'Parent Part of Speech:', 'part_of_speech1000' ),
		'new_item_name'              => __( 'New Part of Speech Name', 'part_of_speech1000' ),
		'add_new_item'               => __( 'Add New Part of Speech', 'part_of_speech1000' ),
		'edit_item'                  => __( 'Edit Part of Speech', 'part_of_speech1000' ),
		'update_item'                => __( 'Update Part of Speech', 'part_of_speech1000' ),
		'view_item'                  => __( 'View Part of Speech', 'part_of_speech1000' ),
		'separate_items_with_commas' => __( 'Separate Part of Speechs with commas', 'part_of_speech1000' ),
		'add_or_remove_items'        => __( 'Add or remove Part of Speechs', 'part_of_speech1000' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'part_of_speech1000' ),
		'popular_items'              => __( 'Popular Part of Speechs', 'part_of_speech1000' ),
		'search_items'               => __( 'Search Part of Speechs', 'part_of_speech1000' ),
		'not_found'                  => __( 'Not Found', 'part_of_speech1000' ),
		'no_terms'                   => __( 'No Part of Speechs', 'part_of_speech1000' ),
		'items_list'                 => __( 'Part of Speechs list', 'part_of_speech1000' ),
		'items_list_navigation'      => __( 'Part of Speechs list navigation', 'part_of_speech1000' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'show_in_rest'               => true,
	);
	register_taxonomy( 'part_speech1000', array( 'curso-ingles-basico', ' conversacion-ingles' ), $args );

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

}