Title: version does not hide
Last modified: August 21, 2016

---

# version does not hide

 *  [LesserNoddy](https://wordpress.org/support/users/lessernoddy/)
 * (@lessernoddy)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/version-does-not-hide/)
 * Hi,
    I need a help, i want to hide the verion of wordpress from view source for
   that iam using this function.
 *     ```
       <?php
   
        function remove_wp_version () {
           return '';
       }
       add_filter ( 'the_generator', 'remove_wp_version' );
       remove_action('wp_head', 'wp_generator');
       ?>
       ```
   
 * this hide the version from main link but still many links shown the version of
   wordpress.
    [Here](http://www.pagasait.com) is my site. Thanxs

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [12 years, 7 months ago](https://wordpress.org/support/topic/version-does-not-hide/#post-4131043)
 * That code worked for me. It removed this from my site:
 *     ```
       <meta name="generator" content="WordPress 3.6.1" />
       ```
   
 * But it did nothing for the `?ver=3.6.1` which is not surprising as that filter
   and action will do nothing for those lines.
 *  Thread Starter [LesserNoddy](https://wordpress.org/support/users/lessernoddy/)
 * (@lessernoddy)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/version-does-not-hide/#post-4131044)
 * thanxs jan
 * there is no way for hiding the version of wordpress from links
    and where should
   i add this code. thanxs
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [12 years, 7 months ago](https://wordpress.org/support/topic/version-does-not-hide/#post-4131047)
 * I appended that code above to my theme’s `functions.php` file.
 *  Thread Starter [LesserNoddy](https://wordpress.org/support/users/lessernoddy/)
 * (@lessernoddy)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/version-does-not-hide/#post-4131057)
 * nothing happened version of wp is still shown on links.
    thanxs
 *  Thread Starter [LesserNoddy](https://wordpress.org/support/users/lessernoddy/)
 * (@lessernoddy)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/version-does-not-hide/#post-4131063)
 * plz suggest me the best possible solution to hide the version of wp completely,
   any suggestion appreciated
    thanxs in advanced.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [12 years, 7 months ago](https://wordpress.org/support/topic/version-does-not-hide/#post-4131070)
 * [http://www.wpbeginner.com/wp-tutorials/the-right-way-to-remove-wordpress-version-number/](http://www.wpbeginner.com/wp-tutorials/the-right-way-to-remove-wordpress-version-number/)
 * However there’s no reason to bother with this. It does not make your site any
   more or less secure.
 *  Thread Starter [LesserNoddy](https://wordpress.org/support/users/lessernoddy/)
 * (@lessernoddy)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/version-does-not-hide/#post-4131077)
 * thanx mika
    I’ll try the same it will remove the version of wp but css link still
   shows a version and i know it does not effect on security , i just want to know
   the correct way of doing this for better knowledge.how do i remove wp version
   from css links also
 * thanx

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘version does not hide’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [LesserNoddy](https://wordpress.org/support/users/lessernoddy/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/version-does-not-hide/#post-4131077)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
