Linux 软件免费装
Banner图

Filter WP Api

开发者 ogulcan
更新时间 2017年10月21日 21:24
捐献地址: 去捐款
PHP版本: 5.2.4 及以上
WordPress版本: 4.8
版权: GPLv3
版权网址: 版权信息

标签

api filter wp-json

下载

1.0 1.0.1 1.1.0

详情介绍:

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.

安装:

This section describes how to install the plugin and get it working.
  1. Upload the plugin files to the /wp-content/plugins/filter-wp-api directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Use the Settings->Filter Rest Api screen to configure the plugin
  4. Both endpoints are enabled as default

屏幕截图:

  • screenshot-1.png
  • screenshot-2.png

升级注意事项:

1.0 Initial version

常见问题:

How to use compact and detailed endpoints?

Just add "?_compact" or "?_detailed" to end of api url.

Disabling plugin also disables rest api?

Nope. Just filtering fields will be disabled. Even you call endpoints, default data will be available.

Compact and detailed are not working for pages/category/author/media

Correct. This is a plugin that only filters for posts. Please stay tuned for more features.

更新日志:

1.0 Initial version.