
Have you seen this in WordPress site’s header?
1 |
<meta name="generator" content="WordPress 5.7"> |
Well, WordPress by default adds this meta generator line into your site’s header for tracking purpose.
One simple way to check if any blog is running latest or older version of WordPress is by checking their Version number in Header section.

Here is right Way to Remove WordPress Version Number.
Is it required?
I believe, absolutely no 🙂
How to disable it?
There are three ways
you could disable WordPress version generator:
Option-1. the_generator add filter option.
Add below to your theme’s function.php file.
1 2 3 4 5 |
add_filter( 'the_generator', 'crunchify_remove_wordpress_version' ); function crunchify_remove_wordpress_version() { return ''; } |
Option-2. wp_head remove action
1 |
remove_action('wp_head', 'wp_generator'); |
Option-3. Use Plugin All-in-One Optimizer and Customizer
- Just download plugin All-in-One Optimizer and Customizer.
- Turn on toggle for
Disable WordPress Version Generator
.

That’s it.

Get All-in-One Optimizer & Customizer
Simplest, most powerful, super light weight All-in-One WordPress plugin for all! 50+ Optimization, Customization & Webmaster Options in one single plugin. 🥳