1. Home
  2. Docs
  3. Inner API
  4. vc_remove_element()

vc_remove_element()

To remove content element from WPBakery Page Builder (formerly Visual Composer) editor you should call vc_remove_element() function from your theme’s functions.php file with shortcode’s base passed as parameter.

<?php vc_remove_element( $shortcode ); ?>

Params

Param name
Type
Description
$shortcode String Shortcode base. For [my_shortcode] shortcode base is my_shortcode. For default “Message box” element, base is “vc_message”

Example

To remove default “Message box” element from WPBakery Page Builder (formerly Visual Composer) use this code:

<?php
vc_remove_element( "vc_message" ); //Note: "vc_message" was used in the vc_map() function call as a base parameter for "Message box" element
?>