CPT-Laboratorio
LAboratorios
// Register Custom Post Type function vnr_custom_post_laboratorio() { $labels = array( 'name' => _x( 'Laboratorios', 'Post Type General Name', 'cpt_valentin' ), 'singular_name' => _x( 'Laboratorio', 'Post Type Singular Name', 'cpt_valentin' ), 'menu_name' => __( 'Laboratorios', 'cpt_valentin' ), 'name_admin_bar' => __( 'Laboratorios', 'cpt_valentin' ), 'archives' => __( 'Archivo Laboratorio', 'cpt_valentin' ), 'attributes' => __( 'Atributos', 'cpt_valentin' ), 'parent_item_colon' => __( 'Laboratorio Padre', 'cpt_valentin' ), 'all_items' => __( 'Todos los Laboratorios', 'cpt_valentin' ), 'add_new_item' => __( 'Agregar Nuevo Laboratorio', 'cpt_valentin' ), 'add_new' => __( 'Agregar Nuevo', 'cpt_valentin' ), 'new_item' => __( 'Nuevo Laboratorio', 'cpt_valentin' ), 'edit_item' => __( 'Editar Laboratorio', 'cpt_valentin' ), 'update_item' => __( 'Actualizar Laboratorio', 'cpt_valentin' ), 'view_item' => __( 'Ver Laboratorio', 'cpt_valentin' ), 'view_items' => __( 'Ver Laboraratorios', 'cpt_valentin' ), 'search_items' => __( 'Buscar Laboratorio', 'cpt_valentin' ), 'not_found' => __( 'Laboratorio No Encontrado', 'cpt_valentin' ), 'not_found_in_trash' => __( 'Laboratorio No encontrado en Papelera', 'cpt_valentin' ), 'featured_image' => __( 'Imagen Destacada', 'cpt_valentin' ), 'set_featured_image' => __( 'Set como Imagen Destacada', 'cpt_valentin' ), 'remove_featured_image' => __( 'Remover Imagen Destacada', 'cpt_valentin' ), 'use_featured_image' => __( 'Usar Como Imagen Destacada', 'cpt_valentin' ), 'insert_into_item' => __( 'Insertar Dentro del Laboratorio', 'cpt_valentin' ), 'uploaded_to_this_item' => __( 'Subir a Laboratorio', 'cpt_valentin' ), 'items_list' => __( 'Lista Laboratorios', 'cpt_valentin' ), 'items_list_navigation' => __( 'Listar Navegacion Laboratorio', 'cpt_valentin' ), 'filter_items_list' => __( 'Filtrar Lista de Laboratorios', 'cpt_valentin' ), ); $rewrite = array( 'slug' => 'laboratorio', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'Laboratorio', 'cpt_valentin' ), 'description' => __( 'Laboratorios', 'cpt_valentin' ), 'labels' => $labels, 'supports' => false, 'hierarchical' => true, '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' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', 'show_in_rest' => true, ); register_post_type( 'laboratorio', $args ); } add_action( 'init', 'vnr_custom_post_laboratorio', 0 );