- add below code in the functions.php in your themes.
12 add_filter('xmlrpc_enabled', '__return_false');
- edit .htaccess
123456 #protect xmlrpc<Files xmlrpc.php>Order Deny,AllowDeny from all</Files>
- delete the xmlrpc.php file