Skip to content

Instantly share code, notes, and snippets.

@mcgregormedia
Last active October 9, 2015 10:50
Show Gist options
  • Save mcgregormedia/d2f9f3a5305061e83162 to your computer and use it in GitHub Desktop.
Save mcgregormedia/d2f9f3a5305061e83162 to your computer and use it in GitHub Desktop.
Disable WordPress XML-RPC methods
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