1
我正在創建一個插件並試圖在我的插件代碼中實現Visual Composer。 我正在使用下面的代碼來實現依賴關係。Visual Composer>依賴不工作
$params = array(
array(
"type" => "checkbox",
"heading" => "Checkbox 1",
"param_name" => "check1",
),
array(
"type" => "textfield",
"heading" => "My textbox",
"param_name" => "text1",
"group" => "Group 1",
"dependency" => array(
"element" => "check1",
"value" => "true"
)
),
);
vc_map(array(
"name" => "My Shortcode",
"base" => "my_shortcode",
"class" => "",
"category" => "ABC",
"params" => $params
));
但是這些代碼不能正常工作。
你的意思只不過是將「value」=>「true」改爲「value」=>「1」 –