Offerte
if ( ! function_exists('custom_offerte') ) {
// Register Custom Post Type
function custom_offerte() {
$labels = array(
'name' => _x( 'Offerte', 'Post Type General Name', 'fontana' ),
'singular_name' => _x( 'Offerta', 'Post Type Singular Name', 'fontana' ),
'menu_name' => __( 'Offerte', 'fontana' ),
'name_admin_bar' => __( 'Offerte', 'fontana' ),
'parent_item_colon' => __( 'Offerta padre:', 'fontana' ),
'all_items' => __( 'Tutte le Offerte', 'fontana' ),
'add_new_item' => __( 'Nuova Offerta', 'fontana' ),
'add_new' => __( 'Nuova Offerta', 'fontana' ),
'new_item' => __( 'Nuova Offerta', 'fontana' ),
'edit_item' => __( 'Modifica Offerta', 'fontana' ),
'update_item' => __( 'Aggiorna Offerta', 'fontana' ),
'view_item' => __( 'Visualizza Offerta', 'fontana' ),
'search_items' => __( 'Cerca Offerta', 'fontana' ),
'not_found' => __( 'Offerta non trovata', 'fontana' ),
'not_found_in_trash' => __( 'Offerta non trovata nel cestino', 'fontana' ),
);
$args = array(
'label' => __( 'offerte', 'fontana' ),
'description' => __( 'Offerte da reteviaggi.com', 'fontana' ),
'labels' => $labels,
'supports' => array( 'title', 'excerpt', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 25,
'menu_icon' => 'dashicons-admin-site',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'post',
);
register_post_type( 'offerte', $args );
}
// Hook into the 'init' action
add_action( 'init', 'custom_offerte', 0 );
}