如何在类型复选框中设置多个默认值Visual Composer简码?
问题描述:
我有代码的多选框这里:如何在类型复选框中设置多个默认值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'),
);
是的,这个代码不工作。如何检查缺省值是:department
和salarry
?
哪里出错?请帮帮我。
答
您可以使用'部门,salarry'作为'std'键的值。
'std' => 'department,salarry',