Rabbit Rooms
Camere struttura alberghiera
if ( ! function_exists('rabbit_rooms') ) { // Register Custom Post Type function rabbit_rooms() { $labels = array( 'name' => _x( 'Camere', 'Post Type General Name', 'themerabbit' ), 'singular_name' => _x( 'Camera', 'Post Type Singular Name', 'themerabbit' ), 'menu_name' => __( 'Camere', 'themerabbit' ), 'parent_item_colon' => __( 'Genitore Camera', 'themerabbit' ), 'all_items' => __( 'Tutte le Camere', 'themerabbit' ), 'view_item' => __( 'Visualizza Camera', 'themerabbit' ), 'add_new_item' => __( 'Aggiungi nuova Camera', 'themerabbit' ), 'add_new' => __( 'Aggiungi Camera', 'themerabbit' ), 'edit_item' => __( 'Modifica Camera', 'themerabbit' ), 'update_item' => __( 'Aggiorna Camera', 'themerabbit' ), 'search_items' => __( 'Cerca Camera', 'themerabbit' ), 'not_found' => __( 'Nessuna Camera trovata', 'themerabbit' ), 'not_found_in_trash' => __( 'Nessuna Camera Trovata nel cestino', 'themerabbit' ), ); $rewrite = array( 'slug' => 'rooms', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'rabbit_rooms', 'themerabbit' ), 'description' => __( 'Camere della Struttura Alberghiera', 'themerabbit' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 5, 'menu_icon' => 'pippo', 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => true, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'rabbit_rooms', $args ); } // Hook into the 'init' action add_action( 'init', 'rabbit_rooms', 0 ); }