Skip to content

Instantly share code, notes, and snippets.

Embed
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
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment