WP Manifestindependent plugin directory
manifest / integrations / wp-rest-api-filter-items

WP REST API Filter Items

Removing Content From WP API Response on your request.

by Frank Bültge · github.com/bueltge/wp-rest-api-filter-items · website

64stars
36composer installs
12forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/bueltge/wp-rest-api-filter-items/archive/refs/heads/master.zip

Also on Packagist as bueltge/wp-rest-api-filter-items:

composer require bueltge/wp-rest-api-filter-items

From the readme

WP REST API Filter Items A WordPress plugin to filters WordPress REST API items for your request. Its removing key and values from WP API response on your request. Description Per default, a post via WordPress REST API would fetch all data in wp-json/wp/v2/posts. For many reasons, you might want to exclude certain fields from WP API response in certain circumstances. This plugin enables you to filter your request for fields you require. Add items to the GET attribute on the url, like wp-json/wp/v2/posts?items=id,title,content in order to get only according field values. The plugin currently supports the filtering of post, taxonomy and comments. WP-API Versions Use the branch wp-api-v1 if you use WP-API Version 1. The master branch is for development, currently ready and open for feature requests for the WP API Version 2. Installation Install static via download, clone the repository or use dependency management via Composer composer require bueltge/wp-rest-api-filter-items Examples Result for post: wp-json/wp/v2/posts?wpjsonnonce=4355d0c4b3&items=id,title,content Result for taxonomy: p-json/wp/v2/taxonomies/category?wpjsonnonce=4355d0c4b3&items=name,slug,types. Res

Read the full README on GitHub →

Releases

TagPublished
1.0.0 Jun 11, 2019

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.