Skip to content

Instantly share code, notes, and snippets.

@voneff
Last active October 10, 2018 01:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save voneff/37e0a7b553bb675f75bb98eb26572abc to your computer and use it in GitHub Desktop.
Save voneff/37e0a7b553bb675f75bb98eb26572abc to your computer and use it in GitHub Desktop.
WordPress: security measures for functions.php
<?php
/*
* Disable version information from being displayed in the header or RSS feed
*
* Sources:
* http://torquemag.io/2016/06/keep-your-wordpress-site-safe-with-these-four-tips/
*/
function disable_version_info() {
return '';
}
add_filter('the_generator', 'disable_version_info');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment