vc_remove_param()
To remove parameter from existing content element you can use vc_remove_param() function.
<?php vc_remove_param( $shortcode, $attribute_name ); ?>
Parameters
$shortcode
- Type - String
- Description - Shortcode base. For
[my_shortcode]shortcode base ismy_shortcode. For default "Message box" element, base isvc_message. - Example:
$shortcode = 'my_shortcode';
$attribute_name
- Type - String
- Description - Name of the parameter that should be removed from content element.
- Example:
$attribute_name = 'custom_param';
Example
If you wish to remove "Extra CSS class" from "Message box" content element, you should use this code.
<?php
vc_remove_param( "vc_message", "el_class" );
// Note: 'vc_message' was used as a base for "Message box" element
?>