cpt_vini
// Register Custom Post Type
function ez_costructor_post_type_vini() {
$labels = array(
'name' => 'Vini',
'singular_name' => 'Vino',
'menu_name' => 'Vini',
'name_admin_bar' => 'Vini',
'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',
'search_items' => 'Cerca tra i Vini',
'not_found' => 'Non Trovato',
'not_found_in_trash' => 'Non Trovato nel Cestino',
);
$rewrite = array(
'slug' => 'vini',
'with_front' => false,
'pages' => true,
'feeds' => false,
);
$args = array(
'label' => 'cpt_vini',
'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 );
}
// Hook into the 'init' action
add_action( 'init', 'ez_costructor_post_type_vini', 0 );