• Resolved dunkkan

    (@dunkkan)


    Hello guys,

    I’m trying to remove the WP version that appears in the HTML source, so those meta tags auto-generated by WP. I always used this snippet :

    //Remove WP Version in Header
    remove_action('wp_head', 'wlwmanifest_link');
    remove_action('wp_head', 'rsd_link');
    add_action('init', 'removeWPVersionInfo');
    
    function removeWPVersionInfo() {
        remove_action('wp_head', 'wp_generator');
    }

    Now however, I found that with 2.8 there’s still something which doesn’t get totally removed :

    <link rel='index' title='My Blog Title' href='https://myHomeUrl' />

    This seems to be created by <?php wp_head(); ?>, which I need to use to call plugins in the future.

    Can anybody point me out how to solve it ?

    Many thanks indeed,

Viewing 1 replies (of 1 total)
  • Thread Starter dunkkan

    (@dunkkan)

    I solved it with :

    remove_action('wp_head', 'index_rel_link');
    remove_action('wp_head', 'wlwmanifest_link');
    remove_action('wp_head', 'rsd_link');
    add_action('init', 'removeWPVersionInfo');
    function removeWPVersionInfo() {
        remove_action('wp_head', 'wp_generator');
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Removing WP version in 2.8’ is closed to new replies.