// Register Custom Post Type function ez_costructor_post_type_vini() { $labels = array( 'name' => 'Vini', 'singular_name' => 'Vino', 'menu_name' => 'Vini', 'name_admin_bar' => 'Vini', 'archives' => 'Item Archives', 'attributes' => 'Item Attributes', 'parent_item_colon' => '', 'all_items' => 'Tutti i Vini', 'add_new_item' => 'Aggiungi Nuovo Vino', 'add_new' => 'Aggiungi Nuovo', 'new_item' => 'Nuovo Vino', 'edit_item' => 'Modifica Vino', 'update_item' => 'Aggiorna Vino', 'view_item' => 'Visualizza Vino', 'view_items' => 'View Items', 'search_items' => 'Cerca tra i Vini', 'not_found' => 'Non Trovato', 'not_found_in_trash' => 'Non Trovato nel Cestino', 'featured_image' => 'Featured Image', 'set_featured_image' => 'Set featured image', 'remove_featured_image' => 'Remove featured image', 'use_featured_image' => 'Use as featured image', 'insert_into_item' => 'Insert into item', 'uploaded_to_this_item' => 'Uploaded to this item', 'items_list' => 'Items list', 'items_list_navigation' => 'Items list navigation', 'filter_items_list' => 'Filter items list', ); $rewrite = array( 'slug' => 'vini', 'with_front' => false, 'pages' => true, 'feeds' => false, ); $args = array( 'label' => 'Vino', 'description' => 'Custom Type Vino Gorghi', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail' ), 'taxonomies' => array( 'tax_vini' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 100, 'menu_icon' => 'dashicons-awards', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'cpt_vini', $args ); } add_action( 'init', 'ez_costructor_post_type_vini', 0 );