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 ars technica

  • Mocked Trump Mobile yanks coverage map that ignored Trump renaming Gulf of Mexico
  • Apple’s Craig Federighi on the long road to the iPad’s Mac-like multitasking
  • New Apple study challenges whether AI models truly “reason” through problems
  • Apple details the end of Intel Mac support and a phaseout for Rosetta 2
  • Apple tiptoes with modest AI updates while rivals race ahead

RSS mac surfer

Donate

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

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