Title: Removing version number
Last modified: February 9, 2018

---

# Removing version number

 *  [locker17](https://wordpress.org/support/users/locker17/)
 * (@locker17)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/removing-version-number/)
 * I tried to delete the version number, but whatCMS still detects my wordpress 
   version. What did I forget?
    1. I deleted readme file 2. I protected wordpress
   admin page 3. I checked feed 4. I included that in functions.php
 *     ```
       function remove_version_info() {
            return '';
       }
       add_filter('the_generator', 'remove_version_info');
       ```
   
 * HTML Source Code:
 *     ```
       <!DOCTYPE html>
       <html>
           <head>
               <title>Klingenbeil</title>
               <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
               <meta name="author" content="Klingenbeil" />
               <meta name="description" content="Klingenbeil" />
               <meta name="keywords" content="Wartungsmodus" />
               <meta name="robots" content="index, follow" />
       						<link rel="stylesheet" href="http://www.klingenbeil.de/wp-content/plugins/wp-maintenance-mode/assets/css/style.min.css">
       				<style>.background { background: url(http://www.klingenbeil.de/wp-content/uploads/2015/09/western_sized.jpg) no-repeat center top fixed; background-size: cover; }</style><script type="text/javascript" src="http://ff.kis.v2.scr.kaspersky-labs.com/BEE71A89F-6391-E042-85CC-78B19FA123B8/main.js" charset="UTF-8"></script><script>
         (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
         (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
         m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
         })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
   
         ga('create', 'UA-1548836-4', 'auto');
         ga('send', 'pageview');
   
       </script>    </head>
           <body class="background">
   
               <div class="wrap">
       			<h1>Wartungsarbeiten</h1>			<h2><p><img src="http://www.klingenbeil.de/wp-content/uploads/2016/09/big-transparent-white.png" alt="klingenbeil Wartung" /></p>
       <p><br /><strong>Wartung</strong></p></h2>
   
   
               </div>
   
               <script type='text/javascript'>
       			var wpmm_vars = {"ajax_url": "http://www.klingenbeil.de/wp-admin/admin-ajax.php"};
               </script>
       						<script src="http://www.klingenbeil.de/wp-includes/js/jquery/jquery.js"></script>
       								<script src="http://www.klingenbeil.de/wp-content/plugins/wp-maintenance-mode/assets/js/scripts.min.js"></script>
       				    </body>
       </html>
       ```
   

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

 *  [HudsonValleyWebDesign](https://wordpress.org/support/users/jaycbrf/)
 * (@jaycbrf)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/removing-version-number/#post-9958153)
 * Try this:
 *     ```
       // Cleaning up the WordPress Head
       function The_head_cleanup() {
         remove_action( 'wp_head', 'wp_generator' );                                        
       add_action('init', 'The_head_cleanup');
       ```
   
 *  Thread Starter [locker17](https://wordpress.org/support/users/locker17/)
 * (@locker17)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/removing-version-number/#post-9958503)
 * I added your code snipet to the Theme’s function.php as well but with no success
   🙁
 * WhatCMS still shows WP 4.9.4.
    Interesting: Wappalyzer addon for FF did not show
   it anymore.
 *     ```
       function The_head_cleanup() {
         remove_action( 'wp_head', 'wp_generator' );  
       }                                      
       add_action('init', 'The_head_cleanup');
       ```
   
 *  Thread Starter [locker17](https://wordpress.org/support/users/locker17/)
 * (@locker17)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/removing-version-number/#post-9959391)
 * I have another website with maintenance mode on it. WP 4.2 something. On this
   site the version number is not detected. So it has to do which version of WP 
   I use I suppose.

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

The topic ‘Removing version number’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [locker17](https://wordpress.org/support/users/locker17/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/removing-version-number/#post-9959391)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
