Last active
October 9, 2015 10:50
-
-
Save mcgregormedia/d2f9f3a5305061e83162 to your computer and use it in GitHub Desktop.
Disable WordPress XML-RPC methods
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
add_filter( 'xmlrpc_methods', 'remove_xmlrpc_methods'); | |
function remove_xmlrpc_methods( $methods ) { | |
unset( $methods['system.multicall'] ); | |
unset( $methods['system.listMethods'] ); | |
unset( $methods['system.getCapabilities'] ); | |
return $methods; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment