How to Remove WordPress Version Number You should always use the latest version of WordPress. However, you still want to remove the WordPress version number from your site. Just add this code snippet to your functions file.
1
2
3
4
|
function wpb_remove_version() { return '' ; } add_filter( 'the_generator' , 'wpb_remove_version' ); |
Always use the latest version of WordPress
Each time a new WordPress update arrives, we get many emails from users whether it is safe to update their wordpress site or not. Are you thinking that you should update your WordPress to the latest version or not? Want to know the pros and cons of updating WordPress? In this article, we will explain why it is always important that you always use the latest version of WordPress and also show how to update WordPress accurately.
WordPress is free, and it has been developed by a community of developers. With each new release, they fix bugs to stay up to date with new industry standards, add new features, improve performance, and enhance existing features.
So in other words, when you do not update your WordPress site, then you are endangering your website security and are discounting new features / fixes.
Let’s look at the pros and cons of updating WordPress.
1. Security
Security is the most important reason why you should keep your WordPress website up-to-date.
2. Cool New Features
Each major WordPress release software comes with new features and changes. For example, WordPress 4.1 came with better plugin install experience, 4.2 inline image editing introduced, and 4.2 came with powerful plugin updates.
3. Speed
WordPress developers are always trying to make things faster. Each new release comes with many performance improvements that make WordPress faster and more efficient.
4. Bug Fixes
Now if you go to the WordPress Support Forum asking for help, you will get the first advice which is to update WordPress because it can fix the problem. If you ask to not update WordPress, you will be unable to get help.
5. Compatibility (or NOT)
Often plugins and theme developers sync their updates with major WordPress releases to make sure they are taking advantage of new features and enhancements.
How to Keep Your WordPress Site Updated
Whenever there is a new update for them, updating your WordPress core, plugins and themes is quite easy. WordPress comes with a built-in update notification system. When you log in to your WordPress dashboard, it highlights the number of available updates.
All you have the Dashboard »Update page and install the update. This is one-click process.
Get Email Notifications for Updates in WordPress
The first thing you have to do is install and activate the WP Update Notifier plugin. On activation, go to Settings »Update Notifier to configure plugin settings.
For detailed instructions, see our guide in order to remove WordPress version number correctly
There are several ways to get rid of the WordPress edition number from your header. But there is only one right way to do this.
Some sites will recommend that you open your header.php file and get rid of this code:
1
|
<meta name= "generator" content= "WordPress <?php bloginfo('version'); ?>" /> |
Or others will recommend that you open your functions.php and add the following function:
1
|
remove_action( 'wp_head' , 'wp_generator' ); |
But in both of these ways you are offering an incomplete solution. These methods will remove the WordPress version number from your head area. So if someone sees your website source, they will not be able to see the version.
But a smart hacker who knows about WordPress will just go to your RSS feed, and they will get your version number because none of the above mentioned code will delete that number.
To completely remove your WordPress version number from both your main file and RSS feed, you must add the following functions to your functions.php file:
1
2
3
4
|
function wpbeginner_remove_version() { return '' ; } add_filter( 'the_generator' , 'wpbeginner_remove_version' ); |
By adding this version, you will remove the WordPress version number from all the different areas on your site. The correct way to remove WordPress version number is up
Note: We still recommend that you update to the latest version of WordPress because it is the only guaranteed way to keep your blog safe.
.