wordpress禁用REST API导致古腾堡编辑器发布文章出错问题
wordpress禁用REST API,在function.php中加入以下代码:
add_filter("json_enabled", "__return_false");
add_filter("json_jsonp_enabled", "__return_false");
add_filter("rest_enabled", "__return_false");
add_filter("rest_jsonp_enabled", "__return_false");
remove_action("init", "rest_api_init");
remove_action("rest_ap