-
-
Save bewho/74e9091b1a9a2378555f7f981c21180b 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