There is some ways:
- You can install this plugin: https://wordpress.org/plugins/disable-xml-rpc/
- Use next code in functions.php of your current wp theme:1add_filter('xmlrpc_enabled', '__return_false');

There is some ways:
1 | add_filter('xmlrpc_enabled', '__return_false'); |