Create a PHP page to hide WP version

Create & Upload a PHP file at the following directory and file name.

wp-content/mu-plugins/remove-wp-version.php

<?php

function remove_wp_version() {
remove_action('wp_head', 'wp_generator');
}
add_action('init', 'remove_wp_version');

?>

0 comments on “Create a PHP page to hide WP versionAdd yours →

Leave a Reply

Your email address will not be published. Required fields are marked *