How to Use
Download > Install > Activate. That’s it!
Example
This disables XML-RPC – Read the benefits here!
Source
This code can be pasted into the functions.php file of your child theme or, download and install the plugin for simple code activation.
add_filter('xmlrpc_enabled', '__return_false');