Skip to content

How To Remove The WordPress Version Number

By default WordPress, the version number is enabled and show in the code of WordPress site installation. Generally, there is no need to remove the version number.

Maybe someone doesn’t want to reveal the version number of the WP site. It is generally needed when you don’t update WordPress when the update available.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Using the below code version number from WordPress front-end code can be removed. Add this code in functions.php of your active theme.

// Remove WordPress Version number
function remove_wordpress_version_number() {
    return '';
}
add_filter('the_generator', 'remove_wordpress_version_number');

Happy Coding 😉

(Visited 1 times, 1 visits today)
%d bloggers like this: