Skip to content
Restores the `filter` param to post enpdpoints.
PHP
Branch: master
Clone or download
kadamwhite Remove README example which does not require this plugin
The example in the readme can be better accomplished with `?slug=`, which is native WP.
Latest commit 4e35ed5 Mar 21, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md Remove README example which does not require this plugin Mar 22, 2019
plugin.php

README.md

WP REST API - Filter parameter for posts endpoints

This plugin is currently unmaintained.

In WordPress 4.7 the filter argument for any post endpoint was removed, The filter argument allows the posts to be filtered using WP_Query public query vars. This plugin restores the filter parameter for sites that were previously using it.

Usage

Use the filter parameter on any post endpoint such as /wp/v2/posts or /wp/v2/pages as an array of WP_Query argument.

You can’t perform that action at this time.