【问题标题】:Is there a "groupby" query in wordpress REST api?wordpress REST api中是否有“groupby”查询?
【发布时间】:2020-03-26 16:38:39
【问题描述】:

wordpress rest api有groupby SQL查询吗?

例子:

/wp-json/wp/v2/posts?filter[meta_key]=age&filter[groupby]=25

【问题讨论】:

标签: php json wordpress rest wordpress-rest-api


【解决方案1】:

自 Wordpress 4.7 起,WP Rest API 不支持filter。

因此您可以使用WP Rest Filter plugin 或需要创建具有自定义功能的自定义端点。

【讨论】:

    猜你喜欢
    • 2020-02-02
    • 2019-12-07
    • 2023-03-05
    • 2021-11-29
    • 2019-01-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多