Title: date_query enabler
Author: arikogan
Published: <strong>1 Mars, 2016</strong>
Last modified: 28 Shkurt, 2016

---

Kërkoni te shtojca

Kjo shtojcë **s’është testuar me 3 hedhjet e rëndësishme të fundit në qarkullim 
të WordPress-it**. Mund të mos e mirëmbajnë më, ose mundet të mos mbulohet më dhe
mund të ketë probleme përputhshmërie, kur përdoret me versione më të freskët të 
WordPress-it.

![](https://s.w.org/plugins/geopattern-icon/date-query-enabler.svg)

# date_query enabler

 Nga [arikogan](https://profiles.wordpress.org/arikogan/)

[Shkarkim](https://downloads.wordpress.org/plugin/date-query-enabler.zip)

 * [Hollësi](https://sq.wordpress.org/plugins/date-query-enabler/#description)
 * [Shqyrtime](https://sq.wordpress.org/plugins/date-query-enabler/#reviews)
 *  [Instalim](https://sq.wordpress.org/plugins/date-query-enabler/#installation)
 * [Zhvillim](https://sq.wordpress.org/plugins/date-query-enabler/#developers)

 [Asistencë](https://wordpress.org/support/plugin/date-query-enabler/)

## Përshkrim

[WP REST API](http://v2.wp-api.org/) 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](https://codex.wordpress.org/Class_Reference/WP_Query#Date_Parameters)
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](https://github.com/WP-API/WP-API/issues/389).
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
    ```

## Instalim

 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

## Shqyrtime

![](https://secure.gravatar.com/avatar/0dbd5f9c2161eb9f3b830ee8db4cbf3398ecaaface509004fe2f7a98e0e109c6?
s=60&d=retro&r=g)

### 󠀁[Clean](https://wordpress.org/support/topic/clean-22/)󠁿

 [VenomVendor](https://profiles.wordpress.org/venomvendor/) 3 Shtator, 2016

Just as needed.

![](https://secure.gravatar.com/avatar/a47a032bb1464f31882baa5bc2d4948efe26f2079a21e34a6119ec517d66ea98?
s=60&d=retro&r=g)

### 󠀁[As is](https://wordpress.org/support/topic/as-is/)󠁿

 [emreerdogan](https://profiles.wordpress.org/emreerdogan/) 3 Shtator, 2016

This is what I was expecting. Thanks.

 [ Lexojini krejt 2 shqyrtimet ](https://wordpress.org/support/plugin/date-query-enabler/reviews/)

## Kontribues & Zhvillues

“date_query enabler” është software me burim të hapur. Në këtë shtojcë kanë dhënë
ndihmesë personat vijues.

Kontribues

 *   [ arikogan ](https://profiles.wordpress.org/arikogan/)

[Përkthejeni “date_query enabler” në gjuhën tuaj.](https://translate.wordpress.org/projects/wp-plugins/date-query-enabler)

### Ju intereson zhvillimi?

[Shfletoni kodin](https://plugins.trac.wordpress.org/browser/date-query-enabler/),
shkarkoni [depon SVN](https://plugins.svn.wordpress.org/date-query-enabler/), ose
pajtohuni përmes [RSS-je](https://plugins.trac.wordpress.org/log/date-query-enabler/?limit=100&mode=stop_on_copy&format=rss)
te [regjistri i zhvillimeve](https://plugins.trac.wordpress.org/log/date-query-enabler/).

## Regjistër ndryshimesh

#### 0.1

 * First version.

## Të tjera

 *  Version **0.1**
 *  Përditësuar së fundi më **10 vjet më parë**
 *  Instalime aktive **10+**
 *  E provuar deri me **4.3.34**
 *  Gjuhë
 * [English (US)](https://wordpress.org/plugins/date-query-enabler/)
 * Etiketa
 * [api](https://sq.wordpress.org/plugins/tags/api/)[rest](https://sq.wordpress.org/plugins/tags/rest/)
 *  [Pamje e Thelluar](https://sq.wordpress.org/plugins/date-query-enabler/advanced/)

## Vlerësime

 5 nga 5 yje të mundshëm.

 *  [  2 shqyrtime me 5 yje     ](https://wordpress.org/support/plugin/date-query-enabler/reviews/?filter=5)
 *  [  0 shqyrtime me 4 yje     ](https://wordpress.org/support/plugin/date-query-enabler/reviews/?filter=4)
 *  [  0 shqyrtime me 3 yje     ](https://wordpress.org/support/plugin/date-query-enabler/reviews/?filter=3)
 *  [  0 shqyrtime me 2 yje     ](https://wordpress.org/support/plugin/date-query-enabler/reviews/?filter=2)
 *  [  0 shqyrtime me 1 yje     ](https://wordpress.org/support/plugin/date-query-enabler/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/date-query-enabler/reviews/#new-post)

[Shihni krejt shqyrtimet](https://wordpress.org/support/plugin/date-query-enabler/reviews/)

## Kontribues

 *   [ arikogan ](https://profiles.wordpress.org/arikogan/)

## Asistencë

Keni diçka për të thënë? Ju duhet ndihmë?

 [Shihni forum asistence](https://wordpress.org/support/plugin/date-query-enabler/)