????JFIF??x?x????'
Server IP : 104.21.80.1 / Your IP : 216.73.216.98 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/pontiacques.org/wp-content/plugins/robo-gallery/cmbre2/fields/hidden_array/ |
Upload File : |
<?php /* * Robo Gallery * Version: 1.0 * By Robosoft * * Contact: https://robosoft.co/robogallery/ * Created: 2015 * Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php * * Copyright (c) 2014-2019, Robosoft. All rights reserved. * Available only in https://robosoft.co/robogallery/ */ /*function jt_cmbre2_shadow_field( $metakey, $post_id = 0 ) { echo jt_cmbre2_get_shadow_field( $metakey, $post_id ); }*/ function robo_gallery_render_hidden_array_field_callback( $field, $value, $object_id, $object_type, $field_type_object ){ //print_r($object_type); //print_r($object_id); if( is_array($value) && count($value) ){ foreach ($value as $key => $val){ echo $field_type_object->input( array( 'name' => $field_type_object->_name( '['.$key.']' ), 'id' => $field_type_object->_id( '_'.$key ), 'value' => $val, 'type' => 'hidden', ) ); } } } add_filter( 'cmbre2_render_hidden_array', 'robo_gallery_render_hidden_array_field_callback', 10, 5 );