Coolest Guides on the Planet

coolest guides on the planet

Coolest Guides On The Planet

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

Hiding the Meta Generator Tag in WordPress in the Header and RSS

July 8, 2011 Leave a Comment

How to hide the Meta Generator tag in the WordPress Header and RSS Feeds

meta-tag-generator

meta-tag-generator

If you check the source code of your WordPress blog, in the header section you will see a meta tag named ‘generator‘ directly below the title tag:

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

The purpose of the tag is  to state the name and version  of the application tool used to create your website. The bad thing about this is that it openly declares what software and version you are using – if that software and version are out of date and subject to exploitation by a hack you are leaving yourself wide open.

In the WordPress installation folder, go to and open the functions.php file from your theme folder  or  just edit the file directly in WordPress via Appearance>Editor>functions.php – it has a onscreen title of theme functions and at the bottom of the file add this following php snippet:

// hide the meta tag generator from head and rss
function disable_version() { return ''; }
add_filter('the_generator','disable_version');
remove_action('wp_head', 'wp_generator');

Update the file, and reload the home page, check the source code and you will see the generator tag for WordPress is no longer visible.  More importantly always keep your WordPress version up to date.

Cats: Tech, WordPress Tags: custom, generator, meta, php, tag, tags, version

Tags

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls

Donate a Beer to the Coolest Guides

Get Beaver Builder Now!

Discuss

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls
Get DesktopServer

Lynda

Lynda.com Online Training Videos

TreeHouse

smlinks

Learn WordPress
osx-modify-shell-path

How to Add to the Shell Path in macOS Big Sur and Catalina using Terminal

October 19, 2019

virtual-hosts osx 10.10 yosemite

Set up Virtual Hosts on macOS Catalina 10.15 in Apache

October 19, 2019

Installing Homebrew on macOS Catalina 10.15, Package Manager for Linux Apps

October 18, 2019

Where is the bash shell in macos Catalina?

October 12, 2019

Refine your search

  • All
  • Modules
  • Themes
  • Documentation
  • Forums & Issues
  • Groups

RSS feed: ars technica ars technica

  • Review: Apple's M6 iMac is pricey, but it's still a good choice for a clean desk
  • It's a weird time to buy a laptop, but the new MacBook Pro doesn't skimp on quality
  • 2026 iPad mini review: Maximizing the mini
  • Coming in 2027: Apple’s $1,000 home robot for FaceTime and switching on lights
  • Touchscreen MacBook Pro hands-on: OLED looks great on a Mac

RSS feed: mac surfer mac surfer

  • Walmart Drops Apple Pay From App
  • iPhone 18e Leaks Reveal Redesigned Camera Bump
  • 'Ted Lasso' Renewed for Season 5 on Apple TV
  • Product(Red) HomePod mini & AirPods Max could be revealed soon
  • Threads is Getting an iPad App

Donate

Copyright © 2026· Neil Gee - All Rights Reserved - Hosted by Runcloud

Copyright © 2026 · gee on Genesis Framework · WordPress · Log in