WordPress Taxonomy Generator

Create your own taxonomies in WordPress with the taxonomy generator from WP Skills. Creating taxonomies for WordPress becomes easy and fast with WP Skills.
Post Types
wp-skills.com

// Register Taxonomy Custom Taxonomy
// Taxonomy Key: customtaxonomy
function create_custom_taxonomy_tax() {
	$labels = array(
		'name'              => _x( 'Custom Taxonomies', 'taxonomy general name', 'textdomain' ),
		'singular_name'     => _x( 'Custom Taxonomy', 'taxonomy singular name', 'textdomain' ),
		'search_items'      => __( 'Search Custom Taxonomies', 'textdomain' ),
		'all_items'         => __( 'All Custom Taxonomies', 'textdomain' ),
		'parent_item'       => __( 'Parent Custom Taxonomy', 'textdomain' ),
		'parent_item_colon' => __( 'Parent Custom Taxonomy:', 'textdomain' ),
		'edit_item'         => __( 'Edit Custom Taxonomy', 'textdomain' ),
		'update_item'       => __( 'Update Custom Taxonomy', 'textdomain' ),
		'add_new_item'      => __( 'Add New Custom Taxonomy', 'textdomain' ),
		'new_item_name'     => __( 'New Custom Taxonomy Name', 'textdomain' ),
		'menu_name'         => __( 'Custom Taxonomy', 'textdomain' ),
	);
    
	$args = array(
		'labels' => $labels,
		'description' => __( '', 'textdomain' ),
		'hierarchical' => false,
		'public' => true,
		'publicly_queryable' => true,
		'show_ui' => true,
		'show_in_menu' => true,
		'show_in_nav_menus' => true,
		'show_tagcloud' => true,
		'show_in_quick_edit' => true,
		'show_admin_column' => false,
		'show_in_rest' => true,
	);
	register_taxonomy( 'customtaxonomy', array('post','page'), $args );

}
add_action( 'init', 'create_custom_taxonomy_tax' );