CPT DE RESERVAS
trabajar en exclusiva con las reservas
if ( ! function_exists('reservas_funcion') ) { // Register Custom Post Type function reservas_funcion() { $labels = array( 'name' => _x( 'reservas', 'Post Type General Name', 'reservas_funcion' ), 'singular_name' => _x( 'reserva', 'Post Type Singular Name', 'reservas_funcion' ), 'menu_name' => __( 'RESERVAS', 'reservas_funcion' ), 'name_admin_bar' => __( 'RESERVAS DE VIAJES', 'reservas_funcion' ), 'archives' => __( 'archivo', 'reservas_funcion' ), 'attributes' => __( 'Item Attributes', 'reservas_funcion' ), 'parent_item_colon' => __( 'reservas principales', 'reservas_funcion' ), 'all_items' => __( 'todas las reservas', 'reservas_funcion' ), 'add_new_item' => __( 'nueva reserva', 'reservas_funcion' ), 'add_new' => __( 'agregar nuevo artículo', 'reservas_funcion' ), 'new_item' => __( 'nueva reserva', 'reservas_funcion' ), 'edit_item' => __( 'Edit Item', 'reservas_funcion' ), 'update_item' => __( 'Update Item', 'reservas_funcion' ), 'view_item' => __( 'View Item', 'reservas_funcion' ), 'view_items' => __( 'articulos', 'reservas_funcion' ), 'search_items' => __( 'buscar articulos', 'reservas_funcion' ), 'not_found' => __( 'no se encuentra', 'reservas_funcion' ), 'not_found_in_trash' => __( 'Not found in Trash', 'reservas_funcion' ), 'featured_image' => __( 'Featured Image', 'reservas_funcion' ), 'set_featured_image' => __( 'Set featured image', 'reservas_funcion' ), 'remove_featured_image' => __( 'Remove featured image', 'reservas_funcion' ), 'use_featured_image' => __( 'Use as featured image', 'reservas_funcion' ), 'insert_into_item' => __( 'insertar en el articulo', 'reservas_funcion' ), 'uploaded_to_this_item' => __( 'Uploaded to this item', 'reservas_funcion' ), 'items_list' => __( 'lista de articulos', 'reservas_funcion' ), 'items_list_navigation' => __( 'Items list navigation', 'reservas_funcion' ), 'filter_items_list' => __( 'Filter items list', 'reservas_funcion' ), ); $rewrite = array( 'slug' => 'reserva', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $capabilities = array( 'edit_post' => 'edit_post', 'read_post' => 'read_post', 'delete_post' => 'delete_post', 'edit_posts' => 'edit_posts', 'edit_others_posts' => 'edit_others_posts', 'publish_posts' => 'publish_posts', 'read_private_posts' => 'read_private_posts', ); $args = array( 'label' => __( 'reserva', 'reservas_funcion' ), 'description' => __( 'CPT de reservas de viajes', 'reservas_funcion' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'revisions', 'page-attributes', 'post-formats' ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => false, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capabilities' => $capabilities, ); register_post_type( 'reservas', $args ); } add_action( 'init', 'reservas_funcion', 0 ); }