Linux 软件免费装

WP REST API - Filter posts date wise using given column

开发者 vigneshsundar
更新时间 2017年11月9日 15:08
PHP版本: 4.7 及以上
WordPress版本: 4.8.3
版权: GPLv2 or later
版权网址: 版权信息

标签

filters post filter wordpress rest api filter modified posts wordpress api

下载

0.1

详情介绍:

In WordPress 4.7, Posts cannot be filtered based on modified, modified_gmt, date_gmt fields. Using this plugin we can specify the column(any of date, date_gmt, modified, modified_gmt) as query parameter date_query_column to query against value(s) given in before and/or after query parameters. Usage Use the date_query_column parameter on any post endpoint such as /wp/v2/posts or /wp/v2/pages in combination with before and/or after parameter. /wp-json/wp/v2/posts?after=2017-11-08T13:07:09&date_query_column=modified