禁用WordPress的xmlrpc功能

禁用WordPress的xmlrpc功能

/**
 * Many see XMLRPC as a security issue / vulnerability.
 * It certainly is for users with weak passwords.
 * This filter turns XMLRPC off, so nothing to worry anymore.
 *
 * @source: //developer.wordpress.org/reference/hooks/xmlrpc_enabled/
 */
add_filter( 'xmlrpc_enabled', '__return_false' );

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据