Remove WordPress Version

7:14:00 PM | ,

A quick and simple WordPress snippet that removes the WordPress version from your blog’s header. Just paste the below into your functions.php file. The below utilizes the ‘the_generator‘ filter to invoke the user-defined function removeWPversion to return a blank instead of the WordPress version.
1<?php
2// Remove WordPress Version
3function removeWPversion()
4{
5   return '';
6}
7 
8add_filter('the_generator','removeWPversion');
9?>