manifest / integrations / rest-filter
WP REST API filter parameter
Restores the `filter` param to post enpdpoints.
★ 187stars
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/wp-api/rest-filter/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
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.