WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing WP version in 2.8 (2 posts)

  1. Dunkkan
    Member
    Posted 5 years ago #

    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='http://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,

  2. Dunkkan
    Member
    Posted 5 years ago #

    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');
    }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.