How to Disable XML-RPC in WordPress

XML-RPC is enabled by default since WordPress version 3.5. For various reasons, you may wish to disable it. You can easily disable XML-RPC by adding the following code to your theme’s functions.php file. After adding the code, you can check if XML-RPC is successfully disabled using the WordPress XML-RPC Validation…