How to remove WordPress version number
If you’re running a WordPress website, you may have noticed the WordPress version number displayed in the source code or in the footer of your site. This is a security risk and should be removed as soon as possible. In this blog post, I’ll show you how to remove WordPress version number from your website.
If it is displayed in the footer of the site you’ll simply have to open footer.php, find the code and remove it.
It’s likley however that the version number is still being displayed in the source code. This can easily be removed by adding the following function to functions.php
function rwd_remove_wp_version_meta() {
return '';
}
add_filter('the_generator', 'rwd_remove_wp_version_meta');