Title: WP_Query Route To REST API
Author: Generaxion
Published: <strong>Gortheren 25, 2019</strong>
Last modified: Ebrel 12, 2022

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/wp-query-route-to-rest-api/assets/icon-256x256.png?rev=2128852)

# WP_Query Route To REST API

 By [Generaxion](https://profiles.wordpress.org/aucor/)

[Download](https://downloads.wordpress.org/plugin/wp-query-route-to-rest-api.1.3.2.zip)

 * [Details](https://cor.wordpress.org/plugins/wp-query-route-to-rest-api/#description)
 * [Reviews](https://cor.wordpress.org/plugins/wp-query-route-to-rest-api/#reviews)
 *  [Installation](https://cor.wordpress.org/plugins/wp-query-route-to-rest-api/#installation)
 * [Development](https://cor.wordpress.org/plugins/wp-query-route-to-rest-api/#developers)

 [Support](https://wordpress.org/support/plugin/wp-query-route-to-rest-api/)

## Description

#### Features

 * Adds new route /wp-json/wp_query/args/ to REST API.
 * You can query content with WP_Query args.
 * There’s extensive filters and actions to limit or extend functionality.
 * Built-in compatibility for [Relevanssi (‘s’ argument)](https://wordpress.org/plugins/relevanssi/)
   and [Polylang (‘lang’ argument)](https://wordpress.org/plugins/polylang/)

## Installation

Download and activate. That’s it.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“WP_Query Route To REST API” is open source software. The following people have 
contributed to this plugin.

Contributors

 *   [ Generaxion ](https://profiles.wordpress.org/aucor/)
 *   [ Teemu Suoranta ](https://profiles.wordpress.org/teemusuoranta/)
 *   [ Sami Keijonen ](https://profiles.wordpress.org/samikeijonen/)
 *   [ Ano Nymous ](https://profiles.wordpress.org/christian-nikkanen/)

[Translate “WP_Query Route To REST API” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-query-route-to-rest-api)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-query-route-to-rest-api/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wp-query-route-to-rest-api/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wp-query-route-to-rest-api/)
by [RSS](https://plugins.trac.wordpress.org/log/wp-query-route-to-rest-api/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.3.2

_Release Date – 12 April 2022_

Fix PHP warning caused by 1.3.0 argument sanitizing refactoring.

#### 1.3.1

_Release Date – 7 April 2022_

Fix composer license to a valid license.

#### 1.3.0

_Release Date – 5 April 2022_

Compatibility release with a few new features. 100% backwards compatible.

 * Custom HTML output is now allowed (#10)
 * Instance and argument sanitizing can be now reused (#11)
 * Typos in filter names are fixed while keeping old names also working (#5)
 * Updates WP version, plugin version and some readme tweaks

#### 1.2.0

_Release Date – 25 July 2019_

*WordPress.org release

#### 1.1.1

_Release Date – 3 June 2017_

 * Added advanced example in readme for getting PHP WP_Query for JS. Added table
   of contents. Made the title hierarchy more logical.

#### 1.1

_Release Date – 5 April 2017_

 * Make the return data structure same as /wp-json/wp/posts/. The data schema was
   missing some data before. Now the structure is inherited from the WP_REST_Posts_Controller
   as it should have from the start.

## Meta

 *  Version **1.3.2**
 *  Last updated **4 years ago**
 *  Active installations **100+**
 *  WordPress version ** 4.7.3 or higher **
 *  Tested up to **5.9.13**
 *  PHP version ** 7.0 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-query-route-to-rest-api/)
 * Tags
 * [rest-api](https://cor.wordpress.org/plugins/tags/rest-api/)[WordPress](https://cor.wordpress.org/plugins/tags/wordpress/)
   [wp_query](https://cor.wordpress.org/plugins/tags/wp_query/)
 *  [Advanced View](https://cor.wordpress.org/plugins/wp-query-route-to-rest-api/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/wp-query-route-to-rest-api/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-query-route-to-rest-api/reviews/)

## Contributors

 *   [ Generaxion ](https://profiles.wordpress.org/aucor/)
 *   [ Teemu Suoranta ](https://profiles.wordpress.org/teemusuoranta/)
 *   [ Sami Keijonen ](https://profiles.wordpress.org/samikeijonen/)
 *   [ Ano Nymous ](https://profiles.wordpress.org/christian-nikkanen/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-query-route-to-rest-api/)