WordPress实现禁用XML-RPC

· WordPress · 18 views

修改主题的functions.php文件‌
在主题的functions.php文件中添加以下代码:

add_filter('xmlrpc_enabled', '__return_false');