Linux 软件免费装
Banner图

WP Rest API Customizer

开发者 amarilindra
ikvaesolutions
更新时间 2022年9月21日 16:26
捐献地址: 去捐款
PHP版本: 5.2.4+ 及以上
WordPress版本: 6.0.2
版权: GPLv2 or later

标签

api rest api wp rest api wp rest api 2 rest api customizer modify wp rest api end points custom wp rest api routs

下载

详情介绍:

WP Rest API Customizer provides an easy to use interface to modify WP rest API response. Sometimes you may need to remove few unnecessary JSON objects from the response to improver performance of your application. This plugin can do it for you. Major features in WP Rest API Customizer include:

安装:

The quickest method for installing the WP Rest API Customizer is:
  1. Visit Plugins -> Add New in the WordPress dashboard.
  2. Search for WP REST API Customizer without quotes in search box.
  3. Click "Install".
  4. Finally click Activate Plugin.
  5. Go to Settings -> WP Rest API Customizer and check the desired fields to modify the defualt WP API response.
If you would prefer to do things manually then follow these instructions:
  1. Extract the dowloaded plugin file.
  2. Upload the wp-rest-api-customizer folder to the /wp-content/plugins/ directory
  3. Activate the plugin through the 'Plugins' menu in WordPress
  4. Go to Settings -> WP Rest API Customizer and check the desired fields to modify the defualt WP API response.

屏幕截图:

  • Enable new routes
  • Modify existing routes

常见问题:

Will my app performance increase if I uncheck all fields?

No, you should not uncheck everything without understanding their actual usage. Few of them might be used by your theme, other plugins are even your app.

I enabled POST ID from POST URL custom route, how to use it?

By enabling it, you created a new route. Send a GET request to https://www.geekdashboard.com/wp-json/wp-rest-api-customizer/url-to-id and add your post url in header with key 'url'

Is enabling comments without authorization is safe?

Yes, it is completely safe. But make sure you enabled comment moderation in WordPress settings -> Discussion to prevent spam comments.

What is the use of adding featured image urls. I'm already getting image id's?

It depends on your requirements. Assume you're showing 20 recent posts with title and feature image in your Android application. By addig featured image url's to JSON object, you're saving 20 requests and ultimately saving user's data, your site bandwidth and improving app performance. Presto!

Can I create my own routes with this plugin?

Currently our plugin didn't support creating own routes. We are planning it in next updates. However if you need a custom router which is useful to others (like gettig post id from post url), ask us via support. We'll add it and update the plugin.

How can I contribute to WP Rest API Customizer?

You can get in touch with from our blog or contact us page and we'll have a discussion.

更新日志:

1.1 Release Date - 4 September 2017 1.0 Release Date - 30 August 2017