Aziende
if ( ! function_exists('cpt_azienda') ) {
// Register Custom Post Type
function cpt_azienda() {
$labels = array(
'name' => 'Aziende',
'singular_name' => 'Azienda',
'menu_name' => 'Aziende',
'name_admin_bar' => 'Azienda',
'archives' => 'Archivio Aziende',
'attributes' => 'Item Attributes',
'parent_item_colon' => 'Parent Item:',
'all_items' => 'Tutte le Aziende',
'add_new_item' => 'Aggiungi Nuova Azienda',
'add_new' => 'Aggiungi Nuova',
'new_item' => 'Nuova Azienda',
'edit_item' => 'Modifica Azienda',
'update_item' => 'Aggiorna Azienda',
'view_item' => 'Vedi Azienda',
'view_items' => 'Vedi Aziende',
'search_items' => 'Cerca Azienda',
'not_found' => 'Not found',
'not_found_in_trash' => 'Not found in Trash',
'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',
);
$args = array(
'label' => 'Azienda',
'description' => 'Azienda',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes', 'post-formats' ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-store',
'show_in_admin_bar' => true,
'show_in_nav_menus' => false,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'azienda', $args );
}
add_action( 'init', 'cpt_azienda', 0 );
}