Guest User

Untitled

a guest
Aug 12th, 2025
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. add_action( 'vc_before_init', 'your_name_integrateWithVC' );
  2. function your_name_integrateWithVC() {
  3. vc_map( array(
  4. "name" => __( "Bar tag test", "my-text-domain" ),
  5. "base" => "bartag",
  6. "class" => "",
  7. "category" => __( "Content", "my-text-domain"),
  8. 'admin_enqueue_js' => array(get_template_directory_uri().'/vc_extend/bartag.js'),
  9. 'admin_enqueue_css' => array(get_template_directory_uri().'/vc_extend/bartag.css'),
  10. "params" => array(
  11. array(
  12. "type" => "textarea_raw_html",
  13. "holder" => "div",
  14. "class" => "",
  15. "heading" => __( "Text", "my-text-domain" ),
  16. "param_name" => "content",
  17. "value" => __( "Default param value", "my-text-domain" ),
  18. "description" => __( "Description for foo param.", "my-text-domain" )
  19. )
  20. )
  21. ) );
  22. }
Advertisement
Add Comment
Please, Sign In to add comment