Filter WP Api

plugin banner

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

Author:Ogulcan Orhan (profile at wordpress.org)
WordPress version required:4.7
WordPress version tested:4.8.24
Plugin version:1.1.0
Added to WordPress repository:30-09-2017
Last updated:21-10-2017
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:https://github.com/ogulcan/filter-wp-api
Total downloads:832
plugin download
Click to start download

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

Screenshots
FAQ
ChangeLog