Hiding your WordPress version again brings up the topic of WordPress security through obscurity . The less other people know about your WordPress site’s configuration, the better. If they see that you have an outdated version of WordPress installed, that could be a welcome sign to attackers. By default, the WordPress version is displayed in the header of your site’s source code. Again, we recommend simply making sure your WordPress installation is always up to date so you don’t have to worry about this.
wordpress version source code
You can use the following code gambling data taiwan to remove this. Just add it to functions.php your WordPress theme file. Important! Editing the source code of a WordPress theme can break your site if done incorrectly. If you are not comfortable doing this, please consult with the developer first.
function wp_version_remove_version() {
return '';
}
add_filter('the_generator', 'wp_version_remove_version');
You can also use a premium plugin like perfmatters (developed by a Kinsta team member) which allows you to hide your WordPress version with one click, along with other optimizations for your WordPress site.