Home Plugins filter wp api
Filter WP Api logo

Filter WP Api

by ogulcan on WordPress.org

A wordpress plugin that clears huge fields of WP Rest API.

(0)
screenshot-1.png

screenshot-1.png

If you ever used WP Rest API, you should have noticed that there are lots of fields that even your client does not need. It makes no sense to load all fields for simple list or even single post view.

This plugin aims to remove redundant fields on Rest API. For now, it’s only available for posts.

Features

There are two endpoints: “compact” and “detailed.

  • “Compact” is useful for listing posts and Detailed is better for single post view.
  • First image of featured media will be added as ‘image’ on detailed and compact.
  • Modified was used as default date.
  • Requires at least WordPress 4.7
Active installations0+
Weekly downloads
10-33.33%
Version1.1.0
Last updated10/21/2017
WordPress version4.7
Tested up to4.8.25
PHP version5.2.4
Tags
apifilterwp-json