Close

April 2, 2015

Remove Visual Composer meta generator tag from WordPress wp_head()

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

For SEO, I like to have the head area of my website pages to be as clean as possible. That includes annoying generator tags that WordPress plugin makes like to force on users. Here is a way for you to remove the meta generator tag inserted by Visual Composer.

It will first check to see if you have Visual Composer installed and active. Then removes the action that inserts the meta generator tag.