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.

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 😉