vc_map options code example
Example 1: vc_map type number
<?php
add_shortcode( 'bartag', 'bartag_func' );
function bartag_func( $atts, $content = null ) {
extract( shortcode_atts( array(
'foo' => 'something',
'color' => '#FFF'
), $atts ) );
$content = wpb_js_remove_wpautop($content, true);
return "<div style='color:{$color};' data-foo='${foo}'>{$content}</div>";
}
?>
Example 2: vc_map type number
array(
"type" => "textfield",
"holder" => "div",
"class" => "",
"heading" => __( "Text", "my-text-domain" ),
"param_name" => "foo",
"value" => __( "This is test param for creating new project", "my-text-domain" ),
"description" => __( "Enter foo.", "my-text-domain" )