WordPress - remove version number from head


/ Published in: PHP
Save to your folder(s)

If your WordPress blog is outdated even by a few days and there's a security hole in your old version you could be seriously compromised without even knowing it. Trust me. This has happened to two of my clients and the fix is not easy. Usually, once compromised, you have to delete the blog and reinstall WordPress, then scour your theme and uploaded files before re-uploading to the server. Avoid this hassle (or worse damage to your blog) if you can.


Copy this code and paste it in your HTML
  1. remove_action('wp_head', 'wp_generator');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.