我想允许textarea中的代码使用PHP、SQL或HTML编写代码。。。
我想做的是在Visual Composer中创建一个元素,在这里我可以放置一些代码,在我写文章时显示它。
您可以在此处找到类型值:
https://kb.wpbakery.com/docs/inner-api/vc_map/
但这些都不适合我。有正确的方法吗?
array(
"type" => "textarea_html",
"heading" => esc_html__("Text", "js_composer"),
"param_name" => "text_code_snippet",
"admin_label" => true,
"description" => esc_html__("The text for your button." , "js_composer")
)
谢谢