How to remove WPBakery Page Builder Metadata from HTML? Print

  • WP
  • 3

Why removing WPBakery Page Builder Metadata from HTML?

While we do not want to expose the tools we're using to manage our website, we rather keep them private and remove any descriptions that are printed out in HTML of our websites. Thus we're ensuring better security for our websites.

How to remove WPBakery Page Builder Metadata from HTML?

By the latest definition, we can remove the meta-generator from our HTML by using any of the snippets below (any one, not more:

Latest:

add_action('init', 'whoops_js_comp', 100);
function whoops_js_comp() { remove_action('wp_head', array(visual_composer(), 'addMetaData'));
}

Please bear in mind that snippets might eventually change as the tools develop, so keep updated.

Additional snippets

Snippet #1

add_action('wp_head', 'myoverride', 1);
function myoverride() {
if ( class_exists( 'Vc_Manager' ) ) {
remove_action('wp_head', array(visual_composer(), 'addMetaData'));
}
}

Snippet #2

//remove a metatag (Powered by Visual Composer) from the wordpress
add_action('init', 'optimize_fixwp_head', 100);
function optimize_fixwp_head() {
remove_action('wp_head', array(visual_composer(), 'addMetaData'));
}

Snippet #3

//remove vc generator
add_action('wp_head', 'novcgen', 1);
function novcgen() {
if ( class_exists( 'Vc_Base' ) ) {
remove_action('wp_head', array(visual_composer(), 'addMetaData'));
}
}

Still unsure?

Contact us for more details.


Was this answer helpful?

« Back