Notes: WordPress Tip #5 – Remove WordPress Generator Meta Tag

November 16, 2020

What’s a WordPress generator meta tag?

It’s a meta tag seen in your website’s <head> that look’s like this:

<meta name="generator" content="WordPress 3.5" />

Why do you need to remove it?

It’s not very secure to show the WordPress version in public.

How to remove it?

Add this to your theme’s functions.php file

remove_action('wp_head', 'wp_generator'); 

Get In Touch

Email: [email protected]


This helps us prevent spam, thank you.