How to Remove the WordPress Version Number

Published by Manan Patel on

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

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

Using 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 😉

Leave a Reply

%d bloggers like this: