Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove XML RPC in WordPress
//add to functions.php
add_filter( 'xmlrpc_enabled', '__return_false' );
//add to .htaccess
# Block WordPress xmlrpc.php requests
<Files xmlrpc.php>
order deny,allow
deny from all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment