Immediately Hide WordPress Version Number Before You Forget

hide-wp-wordpress-version-number
Learn how to hide WordPress version number

By default, WordPress generator meta tag displays your blog’s WordPress version in RSS and Head.

Hide WordPress Version Number from Head and RSS Feed

WordPress generator meta tag display’s below code in RSS feed.

Stop the Bad Habit of putting custom code snippets in functions.php file.

Follow Good Habits and place the below code in WordPress Blog Specific Plugin.

// Remove WordPress Version from Head and RSS Feed
function remove_wordpress_version_number() {
      return( '' );
}
add_filter('the_generator','remove_wordpress_version_number');

kinsta managed wordpress hosting
Pay Yearly, Get 2 Months FREE

Hide WordPress Version Number from Head

WordPress generator meta tag display’s below code in HTML head.

remove-wordpress-wp-generator-meta-tag

Below code will remove generator meta tag.

// Remove WordPress Version Number from Head (HTML)
remove_action('wp_head','wp_generator');

Now visit your WordPress blog and see the html source code. It’s gone.

convertkit email marketing tool
14 Days Free Trial

Hide WordPress Version Number from Admin Footer

It is displayed on the bottom right.

wordpress-wp-version-admin-footer

// Remove WordPress Version Number from Admin Footer
function remove_wordpress_admin_footer_version() {
      remove_filter( 'update_footer', 'core_update_footer' );
}
add_action('admin_menu','remove_wordpress_admin_footer_version');
[ad1]

Visit your WordPress Feed, html source and admin to confirm.

Live Chat Software
Improve Sales & Service with Chat & Ticketing System

WordPress Consultant

If you want to implement on your blog, contact me.