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