项目作者: vignesh-s

项目描述 :
WP REST API - Filter posts date wise using given column
高级语言: PHP
项目地址: git://github.com/vignesh-s/filter_posts_using_date_query_column.git
创建时间: 2017-11-08T08:16:14Z
项目社区:https://github.com/vignesh-s/filter_posts_using_date_query_column

开源协议:GNU General Public License v2.0

下载


WP REST API - Filter posts date wise using given column

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.

  1. /wp-json/wp/v2/posts??after=2017-11-08T13:07:09&date_query_column=modified