Yesterday I showed you how to remove two useless tags from your WordPress head section. Today we’ll remove a tag that could expose your site by revealing which WordPress version you are running. This tag used to be simple to remove but WordPress has moved it from the template to the core.
Here’s how to remove it:
- Login to your WordPress admin panel
- Navigate to Design > Theme Editor and click Theme Functions (functions.php)
- Just before the closing ?> tag add this
remove_action(‘wp_head’, ‘wp_generator’);
- Click Update File
Done!
Popularity: 2% [?]