登陆

php 调用参数

<?php $general_option = get_option('ashuwp_jjt'); ?>

<?php print_r ($general_option['input_upload_multiple'])?>

得到Array (    [1] => Array        (            [image] => http://localhost/wp-content/uploads/2022/03/3201aaab25fe57a644284db295182f4-1.jpg        )     [2] => Array        (            [image] => http://localhost/wp-content/uploads/2022/03/深黄色.png        ) )怎么才能获取到image后边的值后台

$jj_page_option[] = array(

  'name' => '多个',

  'id'   => 'input_upload_multiple',

  'desc' => 'Set the type as group, Set the subtype as array, And set the multiple as true, The group fields is multiple.',

  'std'  => '',

  'subtype' => array(

    array(

      'name' => 'Image',

      'id'   => 'image',

      'desc' => 'Pleas upload a image, Or fill the blank with image uri.',

      'std'  => '',

      'button_text' => 'Upload',

      'type' => 'upload'

    ),

  ),

  'multiple' => true,

  'type' => 'group'

);

# PHP
客53 天前435 次浏览

全部回复(0)我要回复

暂无评论~
  • 取消回复发送