Created
January 20, 2016 11:31
-
-
Save anonymous/02cfcb73c70a64925752 to your computer and use it in GitHub Desktop.
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 | |
/* Die XMLRPC-Schnittstelle komplett abschalten */ | |
add_filter( 'xmlrpc_enabled', '__return_false' ); | |
/* Den HTTP-Header vom XMLRPC-Eintrag bereinigen */ | |
add_filter( 'wp_headers', 'AH_remove_x_pingback' ); | |
function AH_remove_x_pingback( $headers ) | |
{ | |
unset( $headers['X-Pingback'] ); | |
return $headers; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment