877 VIEWS

WordPress tricks #4: remove WordPress version number

October 22, 2014

 wordpress version number 640x320

WordPress has a version number on the header of your website. This version number is generated by wp_generator ( ) function whenever the wp_head ( ) hook is called. This version number should look like this:


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

Although this version number won’t cause any trouble to you by itself, it can help hackers find out what version of WordPress you are currently using. As a result, this will give hackers the opportunity to attack your website if you are not using the latest available release of WordPress (which is strongly suggested).

To remove the WordPress version number, you just simply place the following codes in your function.php file in your theme.


function remove_version( ) {
         return ' ' ;
}
add_filter('the_generator', 'remove_version')	
remove_action('wp_head', 'wp_generator');
Yonge Chen

BY

Web Developer/Digital Marketer

As a Web Developer,  I plan, create and code web pages, applying both non-technical and technical skills to produce web applications that meet the customer's requirements.

As a digital marketing specialist, I am well versed in SEO, SEM, inbound marketing, content, social media, and heavily get involved with all sides of online marketing to help clients generate opportunities, drive sales, and build brand.

get our free ebook

free ebook download

conversion rate optimization

the way to increase your online sales!

download now

Download Free E-book

Conversion Rate Optimization – The Way to Increase Your Online Sales


Sign up to get instant access to my ultimate guide to successful Conversion Rate Optimization and keep updated on our actionable tips plus exclusive deals!