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 remove version number from wordpress,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’);

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.