2016/02/12

remove a metatag (Powered by Visual Composer) from the wordpress



the easy why to remove a metatag (Powered by Visual Composer) from the wordpress html source.


<meta name=”generator” content=”Powered by Visual Composer – drag and drop page builder for WordPress.”/>





Put this code in function.php – it will remove VC meta tags



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



Done..

ليست هناك تعليقات:

إرسال تعليق