raunak-gupta
10/27/2016 - 11:26 AM

Remove auto generated head tags.

Remove auto generated head tags.

<?php

//Remove WooCommerce Generator Tag in Version 2.1.0+
function remove_woo_commerce_generator_tag()
{
    remove_action('wp_head','wc_generator_tag');
}
add_action('get_header','remove_woo_commerce_generator_tag');

//Remove WP Generator Meta Info:
remove_action('wp_head', 'wp_generator');