WP 后台框架 Ashuwp Framework 组合输入框


WP 后台框架 Ashuwp Framework 组合输入框

$ashu_2_meta[] = array(
  'name' => 'Input And Upload',
  'id'   => 'input_upload',
  'desc' => 'Set the type as group, And set the subtype as array, The fields as a group.',
  'std'  => '',
  'subtype' => array(
    array(
      'name' => 'Title',
      'id'   => 'title',
      'desc' => 'Title for image.',
      'std'  => '',
      'type' => 'text'
    ),
    array(
      'name' => 'Link',
      'id'   => 'link',
      'desc' => 'Link for image',
      'std'  => '',
      'type' => 'text'
    ),
    array(
      'name' => 'Image',
      'id'   => 'image',
      'desc' => 'Pleas upload a image, Or fill the blank with image uri.',
      'std'  => '',
      'button_text' => 'Upload',
      'type' => 'upload'
    ),
  ),
  'type' => 'group' //Look here.
);
type – 值设置为group
subtype – 值为数组,数组中的各项为普通的配置项,数量不限。

‘type’ => ‘group’和’multiple’ => true 可同时配置,效果如图:

WP 后台框架 Ashuwp Framework 组合输入框


<< WP 后台框架 Ashuwp Framework 选项卡 tab WP 后台框架 Ashuwp Framework 快速编辑 >>


没有账号? 忘记密码?

社交账号快速登录