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');
?>
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 version” Add yours →