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.
<?php /* Plugin Name: WP Version Remover Plugin URI: https://www.dalesandro.net/ Description: WordPress plugin to remove the version from being displayed in meta info. Author: DALESANDRO.NET Version: 1.0 Author URI: https://www.dalesandro.net/ */ function wp_version_remover() { return ''; } add_filter('the_generator', 'wp_version_remover'); ?>