Created
February 16, 2022 06:46
-
-
Save wpexplorer/2b203f0336ba5d17837c35f1a087c8f6 to your computer and use it in GitHub Desktop.
Remove WPBakery elements from the builder.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'vc_after_init', function() { | |
$elements = array( | |
// Remove core wpbakery elements | |
'vc_single_image', | |
// Remove total elements | |
'vcex_heading', | |
); | |
foreach ( $elements as $element ) { | |
if ( function_exists( 'vc_remove_element' ) ) { | |
vc_remove_element( $element ); | |
} | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment