vc_remove_element()

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

vc_remove_element()

To remove content element from WPBakery Page Builder 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
$shortcodeStringShortcode 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 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
?>

 

Was this article helpful to you? No Yes

How can we help?