Plugin to Remove WordPress Version Number From Meta Info

For security reasons, especially if you are running an older version of WordPress, you may want to hide the automatically added WordPress version number that shows up in your site’s source code and RSS feeds. This plugin will prevent the version number from being added to the generated pages. Add the below code to a .php file and upload it to your plugin directory. Once uploaded, activate the plugin from your dashboard and the WordPress version number will not appear.

Plugin Name: WP Version Remover
Plugin URI:
Description: WordPress plugin to remove the version from being displayed in meta info.
Version: 1.0
Author URI:

function wp_version_remover() {
  return '';

add_filter('the_generator', 'wp_version_remover');


Leave a Comment