Plugin info

Total downloads: 1,359
Active installs: 10
Total reviews: 2
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 2/28/2016 (3647 days ago)
Added to WordPress: 3/1/2016 (9 years old)
Minimum WordPress version: f
Tested up to WordPress version: 4.3.34
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 3647 days ago • 2 reviews

22/100

Is date_query enabler abandoned?

Possibly abandoned (last update 3647 days ago).

Compatibility

Requires WordPress: f
Tested up to: 4.3.34
Requires PHP: f

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Disable REST API
Rating 4.8/5 (38 reviews)Active installs 90,000
Make Connector
Rating 2.7/5 (25 reviews)Active installs 80,000
ACF to REST API
Rating 4.9/5 (34 reviews)Active installs 30,000
REST API Authentication for WP – JWT Auth and more
Rating 4.4/5 (71 reviews)Active installs 20,000
Disable WP REST API
Rating 4.8/5 (36 reviews)Active installs 20,000
WP REST Cache
Rating 4.9/5 (42 reviews)Active installs 10,000

Description

WP REST API plugin provides the ability to interact with a WordPress installation through a REST API. When retrieving posts, a use case would be to filter them based on they publish date by before/after a certain date. In WordPress this can be achieved using the date_query parameter. However, the parameter is not part of the whitelisted parameters of WP REST API. A workaround is to add it ourselves as discussed here. This plugin adds the date_query param to the whitelist not modifying the theme of WordPress but by using a very small and simple plugin. This allows to change and upgrade themes freely and still keep the whitelisting of the parameter.

After installing WP REST API and this plugin, you should be able to run queries like the below,

/wp-json/wp/v2/posts?filter[date_query][after]=2016-02-26T12:38:36
/wp-json/wp/v2/posts?filter[date_query][before]=2016-02-27T14:28:15

Installation

  1. Upload the plugin files to the /wp-content/plugins/date_query directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

0.1

  • First version.