2016-11-17 53 views
0

我有代碼的多選框這裏:如何在類型複選框中設置多個默認值Visual Composer簡碼?

array(
     "type"  => "checkbox", 
     "heading"  => esc_html__('Theme Data', 'my-theme'), 
     "param_name" => "pr_name", 
     "admin_label" => true, 
     "value"  => array(
      esc_html__('Department', 'my-theme') => 'department', 
      esc_html__('Salarry', 'my-theme') => 'salarry', 
      esc_html__('Address', 'my-theme') => 'address', 
      esc_html__('Degree', 'my-theme') => 'degree', 
      esc_html__('Work time', 'my-theme') => 'time', 
      esc_html__('End time', 'my-theme') => 'enddate' 
     ), 
     'std' => array('department', 'salarry'), 
    ); 

是的,這個代碼不工作。如何檢查缺省值是:departmentsalarry

哪裏出錯?請幫幫我。

回答

1

您可以使用'部門,salarry'作爲'std'鍵的值。

'std' => 'department,salarry', 
相關問題