What is XML-RPC in WordPress?
Do I need XML-RPC functionality?
I believe no. XML-RPC by default a target method to attack your site and it’s one of the security liability.
On Crunchify we have disabled XML-RPC.
How to disable XML-RPC in WordPress?
There are two ways you could disable it?
Add below filter to your theme’s functions.php file and it will be disabled.
add_filter( 'xmlrpc_enabled', '__return_false' );
- Download plugin All-in-One Optimizer and Customer.
- Enable option Disable XML-RPC option from
Hope this helps.
Get All-in-One Optimizer & Customizer
Simplest, most powerful, super light weight All-in-One WordPress plugin for all! 50+ Optimization, Customization & Webmaster Options in one single plugin. 🥳