How to Disable XML-RPC in WordPress 3.5:
To disable XML-RPC in WordPress 3.5 first you have to paste the following command or code in your specific plugin.
Disable WordPress XML-RPC with .htaccess:
If your site is getting attacked then one more option is available and that uses .htaccess file to disable XML-RPC with.
Apply this below code in your .htaccess file.
# Block WordPress xmlrpc.php requests
order deny, allow
deny from all
allow from 184.108.40.206