vc_remove_param()

⌘K
  1. Home
  2. Docs
  3. Inner API
  4. vc_remove_param()

vc_remove_param()

To remove parameter from existing content element you can use vc_remove_param() function.

<?php vc_remove_param( $shortcode, $attribute_name ); ?>

Params

Param name
Type
Description
$shortcodeStringShortcode base. For [my_shortcode] shortcode base is my_shortcode. For default “Message box” element, base is “vc_message”
$attribute_nameStringParameter name (param_name) from “params” array in your vc_map function call

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
?>

 

Was this article helpful to you? No Yes

How can we help?