wp disable xmlrpc code example
Example: wordpress disable xmlrpc
/* Disable WordPress XML-RPC for better security */
add_filter('xmlrpc_enabled', '__return_false');
/* Disable WordPress XML-RPC for better security */
add_filter('xmlrpc_enabled', '__return_false');