2017-09-09 83 views

回答

0

你可以这样做

// Your Shortcode to output the custom PHP in Visual Composer. 
function my_vc_shortcode($atts) { 
    // Your Custom Php Code Here 
    return '<h2>This is my custom PHP output!</h2>'; 
} 
add_shortcode('my_vc_php_output', 'my_vc_shortcode'); 

检查源代码在这里:

  1. https://theremotedev.com/custom-php-code-visual-composer-pages/
  2. Insert PHP code into the Visual Composer
+0

如何将shortcode与表单的按钮相关联,因为没有正式的机制来做 –

+0

非常感谢。你也可以帮助我在视觉作曲家客户端验证? –

+0

yaa sure ..但你不能问一个在两个问题,根据每个stackoverflow termsandcondition你要问一个新的问题 –

相关问题