Advertisement
longnguyenwp

Trouble Single Image

Aug 12th, 2020
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 21.44 KB | None | 0 0
  1. <?php
  2. add_action( 'init', function() {
  3.  
  4.     if ( class_exists( 'RWMB_Field' ) ) {
  5.         class RWMB_Versiones_Field extends RWMB_Field {
  6.             public static function html( $meta, $field ) {
  7.                 $html = '';
  8.                 $html .= '<select name="' . $field['field_name'] . '" id ="' . $field['id'] . '" class="rwmb">';
  9.                 //$html .= "<select data-options=\"{'allowClear':true,'width':'none','placeholder':'Select an Item'}\" id=\"select_advanced_5u4qbea9f9q\" class=\"rwmb-select_advanced select2-hidden-accessible\" name=\"select_advanced_5u4qbea9f9q\" data-select2-id=\"select_advanced_5u4qbea9f9q\" tabindex=\"-1\" aria-hidden=\"true\">";
  10.  
  11.                 //$html .=  '<select data-options="{&quot;allowClear&quot;:true,&quot;width&quot;:&quot;none&quot;,&quot;placeholder&quot;:&quot;Select an Item&quot;}" class="rwmb rwmb-select_advanced select2-hidden-accessible" data-select2-id="' . $field['id'] . '" id="' . $field['id'] . '" name="' . $field['field_name'] . '" tabindex="-1" aria-hidden="true">';
  12.                 foreach($GLOBALS['versiones'] as $key => $value){
  13.                     $selected = ($value['vers_id']==$meta)?' selected':'';
  14.                     $html .= '<option value="' . $value['vers_id'] . '"' . $selected . '>' . $value['vers_nombre'] . '</option>';
  15.                 }
  16.                 $html .= '</select>';
  17.                 return $html;
  18.             }
  19.         }
  20.     }
  21.  
  22. } );
  23.  
  24. add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes1' );
  25.  
  26. function your_prefix_register_meta_boxes1( $meta_boxes ) {
  27.     $prefix = '';
  28.  
  29.     $meta_boxes[] = array (
  30.         'title' => esc_html__( 'Vehículos - Configuración2', 'text-domain' ),
  31.         'id' => 'vehiculos-configuracion2',
  32.         'post_types' => array(
  33.             0 => 'vehiculo',
  34.         ),
  35.         'context' => 'normal',
  36.         'priority' => 'high',
  37.         'fields' => array(        
  38.             array (
  39.                 'id' => 'grupo_versiones',
  40.                 'type' => 'group',
  41.                 'name' => esc_html__( 'Versiones', 'text-domain' ),
  42.                 'fields' => array(
  43.                     array(
  44.                         'name' => 'Seleccione una versión',
  45.                         'id'   => 'if_versiones_version_id',
  46.                         'type' => 'versiones',
  47.                         'columns' => 4,
  48.                     ),
  49.                     array (
  50.                         'id' => 'if_versiones_version_hotspot',
  51.                         'name' => esc_html__( 'Hotspot', 'text-domain' ),
  52.                         'type' => 'text',
  53.                         'columns' => 4,                        
  54.                     ),            
  55.                     array (
  56.                         'id' => $prefix . 'if_versiones_version_ficha',
  57.                         'type' => 'file_input',
  58.                         'name' => esc_html__( 'Ficha técnica versión', 'text-domain' ),
  59.                         'columns' => 4,
  60.                     ),                  
  61.                     array (
  62.                         'id' => 'if_versiones_version_descripcion',
  63.                         'name' => esc_html__( 'Descripción', 'text-domain' ),
  64.                         'type' => 'wysiwyg',
  65.                         'columns' => 12,                        
  66.                     ),                                        
  67.                 ),
  68.                 'clone' => 1,
  69.                 'default_state' => 'expanded',
  70.                 'tab' => 'if_vehiculos_tab_general2',
  71.             ),        
  72.         ),      
  73.         'tab_style' => 'left',
  74.         'tab_wrapper' => true,
  75.         'tabs' => array(
  76.             'if_vehiculos_tab_general2' => array(
  77.                 'label' => 'General',
  78.                 'icon' => 'dashicons-admin-generic',
  79.             ),
  80.         ),
  81.     );
  82.  
  83.     return $meta_boxes;
  84. }
  85.  
  86. function your_prefix_register_post_type2() {
  87.  
  88.     $args = array (
  89.         'label' => esc_html__( 'Detalle de Vehiculos', 'text-domain' ),
  90.         'labels' => array(
  91.             'menu_name' => esc_html__( 'Detalle de Vehiculos', 'text-domain' ),
  92.             'name_admin_bar' => esc_html__( 'Detalle de Vehiculo', 'text-domain' ),
  93.             'add_new' => esc_html__( 'Agregar nuevo', 'text-domain' ),
  94.             'add_new_item' => esc_html__( 'Agregar nuevo Detalle de Vehiculo', 'text-domain' ),
  95.             'new_item' => esc_html__( 'Nuevo Detalle de Vehiculo', 'text-domain' ),
  96.             'edit_item' => esc_html__( 'Editar Detalle de Vehiculo', 'text-domain' ),
  97.             'view_item' => esc_html__( 'Ver Detalle de Vehiculo', 'text-domain' ),
  98.             'update_item' => esc_html__( 'Update Detalle de Vehiculo', 'text-domain' ),
  99.             'all_items' => esc_html__( 'Todos Detalle de Vehiculos', 'text-domain' ),
  100.             'search_items' => esc_html__( 'Buscar Detalle de Vehiculos', 'text-domain' ),
  101.             'parent_item_colon' => esc_html__( 'Detalle de vehículo padre', 'text-domain' ),
  102.             'not_found' => esc_html__( 'No se encontró Detalle', 'text-domain' ),
  103.             'not_found_in_trash' => esc_html__( 'No se encontró Detalle en la papelera', 'text-domain' ),
  104.             'name' => esc_html__( 'Detalle de Vehiculos', 'text-domain' ),
  105.             'singular_name' => esc_html__( 'Detalle de Vehiculo', 'text-domain' ),
  106.         ),
  107.         'public' => true,
  108.         'exclude_from_search' => false,
  109.         'publicly_queryable' => true,
  110.         'show_ui' => true,
  111.         'show_in_nav_menus' => true,
  112.         'show_in_menu' => 'edit.php?post_type=vehiculo',
  113.         'show_in_admin_bar' => true,
  114.         'show_in_rest' => true,
  115.         'menu_icon' => 'dashicons-universal-access-alt',
  116.         'capability_type' => 'page',
  117.         'hierarchical' => false,
  118.         'has_archive' => true,
  119.         'query_var' => true,
  120.         'can_export' => true,
  121.         'rewrite_no_front' => false,
  122.         'supports' => array(
  123.             'title',
  124.             'editor',
  125.             'thumbnail',
  126.             'revisions',
  127.         ),
  128.         'rewrite' => true,
  129.     );
  130.  
  131.     register_post_type( 'detalle-de-vehiculo', $args );
  132. }
  133. add_action( 'init', 'your_prefix_register_post_type2' );
  134.  
  135. function your_prefix_register_post_type3() {
  136.  
  137.     $args = array (
  138.         'label' => esc_html__( 'Accesorios', 'text-domain' ),
  139.         'labels' => array(
  140.             'menu_name' => esc_html__( 'Accesorios', 'text-domain' ),
  141.             'name_admin_bar' => esc_html__( 'Accesorio', 'text-domain' ),
  142.             'add_new' => esc_html__( 'Agregar', 'text-domain' ),
  143.             'add_new_item' => esc_html__( 'Agregar Nuevo Accesorio', 'text-domain' ),
  144.             'new_item' => esc_html__( 'Nuevo Accesorio', 'text-domain' ),
  145.             'edit_item' => esc_html__( 'Editar Accesorio', 'text-domain' ),
  146.             'view_item' => esc_html__( 'Ver Accesorio', 'text-domain' ),
  147.             'update_item' => esc_html__( 'Update Accesorio', 'text-domain' ),
  148.             'all_items' => esc_html__( 'Todos los Accesorios', 'text-domain' ),
  149.             'search_items' => esc_html__( 'Buscar Accesorios', 'text-domain' ),
  150.             'parent_item_colon' => esc_html__( 'Accesorio padre', 'text-domain' ),
  151.             'not_found' => esc_html__( 'No se encontraron accesorios', 'text-domain' ),
  152.             'not_found_in_trash' => esc_html__( 'No se encontraron accesorios en la papelera', 'text-domain' ),
  153.             'name' => esc_html__( 'Accesorios', 'text-domain' ),
  154.             'singular_name' => esc_html__( 'Accesorio', 'text-domain' ),
  155.         ),
  156.         'public' => true,
  157.         'exclude_from_search' => false,
  158.         'publicly_queryable' => true,
  159.         'show_ui' => true,
  160.         'show_in_nav_menus' => true,
  161.         'show_in_menu' => true,
  162.         'show_in_admin_bar' => true,
  163.         'show_in_rest' => true,
  164.         'menu_position' => 2,
  165.         'menu_icon' => 'dashicons-admin-appearance',
  166.         'capability_type' => 'post',
  167.         'hierarchical' => false,
  168.         'has_archive' => 'accesorios',
  169.         'query_var' => true,
  170.         'can_export' => true,
  171.         'rewrite_no_front' => false,
  172.         'supports' => array(
  173.             'title',
  174.             'editor',
  175.             'thumbnail',
  176.         ),
  177.         'rewrite' => true,
  178.     );
  179.  
  180.     register_post_type( 'accesorio', $args );
  181. }
  182. add_action( 'init', 'your_prefix_register_post_type3' );
  183.  
  184. function your_prefix_register_post_type4() {
  185.  
  186.     $args = array (
  187.         'label' => esc_html__( 'Vehículos', 'text-domain' ),
  188.         'labels' => array(
  189.             'menu_name' => esc_html__( 'Vehículos', 'text-domain' ),
  190.             'name_admin_bar' => esc_html__( 'Vehículo', 'text-domain' ),
  191.             'add_new' => esc_html__( 'Nuevo', 'text-domain' ),
  192.             'add_new_item' => esc_html__( 'Nuevo Vehículo', 'text-domain' ),
  193.             'new_item' => esc_html__( 'Nuevo Vehículo', 'text-domain' ),
  194.             'edit_item' => esc_html__( 'Editar Vehículo', 'text-domain' ),
  195.             'view_item' => esc_html__( 'Ver Vehículo', 'text-domain' ),
  196.             'update_item' => esc_html__( 'Update Vehículo', 'text-domain' ),
  197.             'all_items' => esc_html__( 'Todos los Vehículos', 'text-domain' ),
  198.             'search_items' => esc_html__( 'BuscarVehículos', 'text-domain' ),
  199.             'parent_item_colon' => esc_html__( 'Vehículo padre', 'text-domain' ),
  200.             'not_found' => esc_html__( 'No se encontraron vehículos', 'text-domain' ),
  201.             'not_found_in_trash' => esc_html__( 'No se encontraron vehículos en la papelera', 'text-domain' ),
  202.             'name' => esc_html__( 'Vehículos', 'text-domain' ),
  203.             'singular_name' => esc_html__( 'Vehículo', 'text-domain' ),
  204.         ),
  205.         'public' => true,
  206.         'exclude_from_search' => false,
  207.         'publicly_queryable' => true,
  208.         'show_ui' => true,
  209.         'show_in_nav_menus' => true,
  210.         'show_in_menu' => true,
  211.         'show_in_admin_bar' => true,
  212.         'show_in_rest' => true,
  213.         'menu_position' => 20,
  214.         'menu_icon' => 'dashicons-dashboard',
  215.         'capability_type' => 'post',
  216.         'hierarchical' => false,
  217.         'has_archive' => true,
  218.         'query_var' => true,
  219.         'can_export' => true,
  220.         'supports' => array(
  221.             'title',
  222.             'editor',
  223.             'thumbnail',
  224.             'excerpt',
  225.             'revisions',
  226.         ),
  227.         'rewrite' => array(
  228.             'with_front' => false,
  229.         ),
  230.     );
  231.  
  232.     register_post_type( 'vehiculo', $args );
  233. }
  234. add_action( 'init', 'your_prefix_register_post_type4' );
  235.  
  236. function your_prefix_register_taxonomy5() {
  237.  
  238.     $args = array (
  239.         'label' => esc_html__( 'Familias', 'text-domain' ),
  240.         'labels' => array(
  241.             'menu_name' => esc_html__( 'Familias', 'text-domain' ),
  242.             'all_items' => esc_html__( 'Todas las Familias', 'text-domain' ),
  243.             'edit_item' => esc_html__( 'Editar Familias', 'text-domain' ),
  244.             'view_item' => esc_html__( 'Ver Familia', 'text-domain' ),
  245.             'update_item' => esc_html__( 'Actualizar Familia', 'text-domain' ),
  246.             'add_new_item' => esc_html__( 'Agregar Nueva Familia', 'text-domain' ),
  247.             'new_item_name' => esc_html__( 'Nueva Familia', 'text-domain' ),
  248.             'parent_item' => esc_html__( 'Familia Padre', 'text-domain' ),
  249.             'parent_item_colon' => esc_html__( 'Familia Padre:', 'text-domain' ),
  250.             'search_items' => esc_html__( 'Buscar Familias', 'text-domain' ),
  251.             'popular_items' => esc_html__( 'Familias populares', 'text-domain' ),
  252.             'separate_items_with_commas' => esc_html__( 'Familias separadas con comas', 'text-domain' ),
  253.             'add_or_remove_items' => esc_html__( 'Agregar o Eliminar Familias', 'text-domain' ),
  254.             'choose_from_most_used' => esc_html__( 'Elegir desde las Familias más usadas', 'text-domain' ),
  255.             'not_found' => esc_html__( 'No se encontraron Familias', 'text-domain' ),
  256.             'name' => esc_html__( 'Familias', 'text-domain' ),
  257.             'singular_name' => esc_html__( 'Familia', 'text-domain' ),
  258.         ),
  259.         'public' => true,
  260.         'show_ui' => true,
  261.         'show_in_menu' => true,
  262.         'show_in_nav_menus' => true,
  263.         'show_tagcloud' => true,
  264.         'show_in_quick_edit' => true,
  265.         'show_admin_column' => true,
  266.         'show_in_rest' => true,
  267.         'hierarchical' => true,
  268.         'query_var' => true,
  269.         'sort' => false,
  270.         'rewrite_no_front' => false,
  271.         'rewrite_hierarchical' => false,
  272.         'rewrite' => true,
  273.     );
  274.  
  275.     register_taxonomy( 'familia', array( 'accesorio' ), $args );
  276. }
  277. add_action( 'init', 'your_prefix_register_taxonomy5', 0 );
  278.  
  279. add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes6' );
  280.  
  281. function your_prefix_register_meta_boxes6( $meta_boxes ) {
  282.     $prefix = '';
  283.  
  284.     $meta_boxes[] = array (
  285.         'title' => esc_html__( 'Accesorios detalle', 'text-domain' ),
  286.         'id' => 'accesorios-detalle',
  287.         'post_types' => array(
  288.             0 => 'accesorio',
  289.         ),
  290.         'context' => 'normal',
  291.         'priority' => 'high',
  292.         'fields' => array(
  293.             array (
  294.                 'id' => $prefix . 'ac_image_accesorios',
  295.                 'type' => 'single_image',
  296.                 'name' => esc_html__( 'Imagen accesorios', 'text-domain' ),
  297.             ),
  298.             array (
  299.                 'id' => $prefix . 'ac_precio_real',
  300.                 'type' => 'number',
  301.                 'name' => esc_html__( 'Precio accesorio', 'text-domain' ),
  302.             ),
  303.             array (
  304.                 'id' => $prefix . 'ac_list_carac',
  305.                 'type' => 'textarea',
  306.                 'name' => esc_html__( 'Lista de características', 'text-domain' ),
  307.             ),
  308.         ),
  309.     );
  310.  
  311.     return $meta_boxes;
  312. }
  313.  
  314. add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes7' );
  315.  
  316. function your_prefix_register_meta_boxes7( $meta_boxes ) {
  317.     $prefix = '';
  318.     $meta_boxes[] = array (
  319.         'title' => esc_html__( 'Vehículos - Configuración', 'text-domain' ),
  320.         'id' => 'vehiculos-configuracion',
  321.         'post_types' => array(
  322.             0 => 'vehiculo',
  323.         ),
  324.         'context' => 'normal',
  325.         'priority' => 'high',
  326.         'fields' => array(
  327.             array (
  328.                 'id' => $prefix . 'if_vehiculos_imagen2',
  329.                 'type' => 'single_image',
  330.                 'name' => esc_html__( 'Imagen principal', 'text-domain' ),
  331.                 'tab' => 'if_vehiculos_tab_general',
  332.             ),          
  333.             array (
  334.                 'id' => $prefix . 'if_vehiculos_familia',
  335.                 'type' => 'text',
  336.                 'name' => esc_html__( 'Familia', 'text-domain' ),
  337.                 'tab' => 'if_vehiculos_tab_general',
  338.             ),
  339.             array (
  340.                 'id' => $prefix . 'if_vehiculos_slider',
  341.                 'type' => 'text',
  342.                 'name' => esc_html__( 'Slider', 'text-domain' ),
  343.                 'desc' => esc_html__( 'Escriba el Shortcode que arroja el revolution Slider', 'text-domain' ),
  344.                 'tab' => 'if_vehiculos_tab_general',
  345.             ),
  346.             array (
  347.                 'id' => $prefix . 'if_vehiculos_accesorios',
  348.                 'type' => 'taxonomy',
  349.                 'name' => esc_html__( 'Familia de accesorios', 'text-domain' ),
  350.                 'taxonomy' => 'familia',
  351.                 'field_type' => 'select',
  352.                 'tab' => 'if_vehiculos_tab_general',
  353.             ),
  354.             array (
  355.                 'id' => $prefix . 'if_vehiculos_ficha_tecnica_general',
  356.                 'type' => 'file_input',
  357.                 'name' => esc_html__( 'Ficha técnica general', 'text-domain' ),
  358.                 'tab' => 'if_vehiculos_tab_general',
  359.             ),          
  360.             array (
  361.                 'id' => $prefix . 'heading_33yatm363gp',
  362.                 'type' => 'heading',
  363.                 'name' => esc_html__( 'PESTAÑA 1', 'text-domain' ),
  364.                 'tab' => 'if_vehiculos_tab_pestanas',
  365.             ),
  366.             array (
  367.                 'id' => $prefix . 'if_vehiculos_tab1_img',
  368.                 'type' => 'single_image',
  369.                 'name' => esc_html__( 'Imagen Pestaña 1', 'text-domain' ),
  370.                 'columns' => 4,
  371.                 'tab' => 'if_vehiculos_tab_pestanas',
  372.             ),
  373.             array (
  374.                 'id' => $prefix . 'if_vehiculos_tab1_nombre',
  375.                 'type' => 'text',
  376.                 'name' => esc_html__( 'Nombre Pestaña 1', 'text-domain' ),
  377.                 'columns' => 4,
  378.                 'tab' => 'if_vehiculos_tab_pestanas',
  379.             ),
  380.             array (
  381.                 'id' => $prefix . 'if_vehiculos_tab1_url',
  382.                 'type' => 'text',
  383.                 'name' => esc_html__( 'Url Pestaña 1', 'text-domain' ),
  384.                 'columns' => 4,
  385.                 'tab' => 'if_vehiculos_tab_pestanas',
  386.             ),
  387.             array (
  388.                 'id' => $prefix . 'heading_33yatm363gp_8mhjetp7gxv',
  389.                 'type' => 'heading',
  390.                 'name' => esc_html__( 'PESTAÑA 2', 'text-domain' ),
  391.                 'tab' => 'if_vehiculos_tab_pestanas',
  392.             ),
  393.             array (
  394.                 'id' => $prefix . 'if_vehiculos_tab2_img',
  395.                 'type' => 'single_image',
  396.                 'name' => esc_html__( 'Imagen Pestaña 2', 'text-domain' ),
  397.                 'columns' => 4,
  398.                 'tab' => 'if_vehiculos_tab_pestanas',
  399.             ),
  400.             array (
  401.                 'id' => $prefix . 'if_vehiculos_tab2_nombre',
  402.                 'type' => 'text',
  403.                 'name' => esc_html__( 'Nombre Pestaña 2', 'text-domain' ),
  404.                 'columns' => 4,
  405.                 'tab' => 'if_vehiculos_tab_pestanas',
  406.             ),
  407.             array (
  408.                 'id' => $prefix . 'if_vehiculos_tab2_url',
  409.                 'type' => 'text',
  410.                 'name' => esc_html__( 'Url Pestaña 2', 'text-domain' ),
  411.                 'columns' => 4,
  412.                 'tab' => 'if_vehiculos_tab_pestanas',
  413.             ),
  414.             array (
  415.                 'id' => $prefix . 'heading_33yatm363gp_8mhjetp7gxv_b8bcc4wuxrh',
  416.                 'type' => 'heading',
  417.                 'name' => esc_html__( 'PESTAÑA 3', 'text-domain' ),
  418.                 'tab' => 'if_vehiculos_tab_pestanas',
  419.             ),
  420.             array (
  421.                 'id' => $prefix . 'if_vehiculos_tab3_img',
  422.                 'type' => 'single_image',
  423.                 'name' => esc_html__( 'Imagen Pestaña 3', 'text-domain' ),
  424.                 'columns' => 4,
  425.                 'tab' => 'if_vehiculos_tab_pestanas',
  426.             ),
  427.             array (
  428.                 'id' => $prefix . 'if_vehiculos_tab3_nombre',
  429.                 'type' => 'text',
  430.                 'name' => esc_html__( 'Nombre Pestaña 3', 'text-domain' ),
  431.                 'columns' => 4,
  432.                 'tab' => 'if_vehiculos_tab_pestanas',
  433.             ),
  434.             array (
  435.                 'id' => $prefix . 'if_vehiculos_tab3_url',
  436.                 'type' => 'text',
  437.                 'name' => esc_html__( 'Url Pestaña 3', 'text-domain' ),
  438.                 'columns' => 4,
  439.                 'tab' => 'if_vehiculos_tab_pestanas',
  440.             ),
  441.             array (
  442.                 'id' => $prefix . 'heading_33yatm363gp_8mhjetp7gxv_b8bcc4wuxrh_r0iklnxjvw',
  443.                 'type' => 'heading',
  444.                 'name' => esc_html__( 'PESTAÑA 4', 'text-domain' ),
  445.                 'tab' => 'if_vehiculos_tab_pestanas',
  446.             ),
  447.             array (
  448.                 'id' => $prefix . 'if_vehiculos_tab4_img',
  449.                 'type' => 'single_image',
  450.                 'name' => esc_html__( 'Imagen Pestaña 4', 'text-domain' ),
  451.                 'columns' => 4,
  452.                 'tab' => 'if_vehiculos_tab_pestanas',
  453.             ),
  454.             array (
  455.                 'id' => $prefix . 'if_vehiculos_tab4_nombre',
  456.                 'type' => 'text',
  457.                 'name' => esc_html__( 'Nombre Pestaña 4', 'text-domain' ),
  458.                 'columns' => 4,
  459.                 'tab' => 'if_vehiculos_tab_pestanas',
  460.             ),
  461.             array (
  462.                 'id' => $prefix . 'if_vehiculos_tab4_url',
  463.                 'type' => 'text',
  464.                 'name' => esc_html__( 'Url Pestaña 4', 'text-domain' ),
  465.                 'columns' => 4,
  466.                 'tab' => 'if_vehiculos_tab_pestanas',
  467.             ),
  468.         ),
  469.         'tab_style' => 'left',
  470.         'tab_wrapper' => true,
  471.         'tabs' => array(
  472.             'if_vehiculos_tab_general' => array(
  473.                 'label' => 'General',
  474.                 'icon' => 'dashicons-admin-generic',
  475.             ),
  476.             'if_vehiculos_tab_pestanas' => array(
  477.                 'label' => 'Pestañas',
  478.                 'icon' => 'dashicons-portfolio',
  479.             ),
  480.         ),
  481.     );
  482.  
  483.     return $meta_boxes;
  484. }
  485.  
  486. //add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' );
  487.  
  488. // function your_prefix_register_meta_boxes( $meta_boxes ) {
  489. //     $prefix = '';
  490.  
  491. //     $meta_boxes[] = array (
  492. //         'title' => esc_html__( 'Select Form', 'text-domain' ),
  493. //         'id' => 'select-form',
  494. //         'post_types' => array(
  495. //             0 => 'post',
  496. //         ),
  497. //         'context' => 'normal',
  498. //         'priority' => 'high',
  499. //         'fields' => array(
  500. //             array (
  501. //                 'id' => $prefix . 'Versione_select',
  502. //                 'type' => 'Versione_select',
  503. //                 'name' => esc_html__( 'Select Form', 'text-domain' ),
  504. //             ),
  505.            
  506. //         ),
  507. //     );
  508.  
  509. //     return $meta_boxes;
  510. // }
  511. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement