将`filter`参数恢复到post端点。
github.com/mupic/rest-filter
主页
源代码
安装: 9
依赖者: 0
建议者: 0
安全性: 0
星标: 0
关注者: 1
分支: 48
类型:wordpress-plugin
Requires
None
Requires (Dev)
Suggests
Provides
Conflicts
Replaces
MIT 4472b382af8049c57db2075fbc6f44acdab16725
restwpwp-api
This package is auto-updated.
Last update: 2024-09-18 06:26:16 UTC
composer require mupic/rest-filter
此插件目前未维护。
在WordPress 4.7版本中,移除了任何post端点的`filter`参数。`filter`参数允许使用`WP_Query`公共查询变量来过滤文章。此插件将恢复`filter`参数,以适用于之前已经使用该参数的站点。
可以在任何post端点(如`/wp/v2/posts`或`/wp/v2/pages`)上使用`filter`参数,作为一个`WP_Query`参数的数组。