This topic is: resolved
-
This code used to work in my functions.php in the theme (DHVC version 1.x):
add_action("init", function() { $submit_button_shortcode = WPBMap::getShortCode('dhvc_form_submit_button'); if ( $submit_button_shortcode ) { array_push($submit_button_shortcode['params'], array( "type" => "dropdown", "holder" => "div", "heading" => __("Enable Conversion Tracking?", 'tpp'), "param_name" => "conversion_tracking", "value" => array( "No" => "no", "Yes" => "yes" ), "description" => __("Enable conversion tracking", 'tpp'), 'group' => "Conversion Tracking" ) ); vc_map_update('dhvc_form_submit_button', $submit_button_shortcode ); } }, 100);
Now I get this error:
“Fatal error: Uncaught Exception: Wrong setting_name for shortcode:dhvc_form_submit_button. Base can't be modified. in /home/projects/tpp-multisite/wp-content/plugins/js_composer/include/classes/core/class-wpb-map.php:784”
Does anyone have a suggestion on how to fix this?
Thanks in advance for your help.