Pages

Sunday, April 14, 2013

Remove Version Number from Wordpress

By default WordPress displays version number publicly on your Website. But sometimes this might be a security risk for WordPress site. Hackers can easily identify the WordPress version. To prevent this, just remove WordPress version from the site.

Just add the following function in function.php to remove the version number.


function remove_wp_version() {
return '';
}

add_filter('the_generator', 'remove_wp_version');

No comments:

Post a Comment