Last active
October 10, 2018 01:41
-
-
Save voneff/37e0a7b553bb675f75bb98eb26572abc to your computer and use it in GitHub Desktop.
WordPress: security measures for functions.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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