Title: Custom API Creator
Author: Mehdi Rezaei
Published: <strong>2024 年 10 月 7 日</strong>
Last modified: 2024 年 10 月 7 日

---

搜尋外掛

![](https://ps.w.org/custom-api-creator/assets/banner-772x250.png?rev=3163932)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/custom-api-creator/assets/icon-256x256.png?rev=3163932)

# Custom API Creator

 由 [Mehdi Rezaei](https://profiles.wordpress.org/mehdiraized/) 開發

[下載](https://downloads.wordpress.org/plugin/custom-api-creator.1.0.4.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/custom-api-creator/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/custom-api-creator/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/custom-api-creator/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/custom-api-creator/#developers)

 [技術支援](https://wordpress.org/support/plugin/custom-api-creator/)

## 外掛說明

Custom API Creator is a powerful WordPress plugin that allows developers and site
owners to create custom REST API endpoints with ease. This plugin bridges the gap
between your WordPress content and custom applications, enabling you to expose your
data in a flexible, secure, and organized manner.

With Custom API Creator, you can define multiple API endpoints, each with its own
set of data sections. Choose which post types and fields to include, control access
with user role restrictions, and customize the structure of your API responses. 
Whether you’re building a mobile app, integrating with a third-party service, or
creating a headless WordPress setup, Custom API Creator provides the tools you need
to shape your data output.

Translation :
 To contribute in translating this plugin please visit: [WordPress Translation Repository](https://translate.wordpress.org/projects/wp-plugins/custom-api-creator/)

## 螢幕擷圖

[⌊Custom Api Plugin Page⌉⌊Custom Api Plugin Page⌉[

Custom Api Plugin Page

[⌊Manage End Point Page⌉⌊Manage End Point Page⌉[

Manage End Point Page

[⌊Manage Private End Point Page⌉⌊Manage Private End Point Page⌉[

Manage Private End Point Page

[⌊Response Test Api⌉⌊Response Test Api⌉[

Response Test Api

## 安裝方式

 1. Upload the plugin files to the `/wp-content/plugins/custom-api-creator` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.

## 常見問題集

### How do I create a new custom API endpoint?

    1. In your WordPress admin panel, go to “Custom API Creator” in the main menu.
 *  1. Click “Add New” to create a new API endpoint.
 *  1. Set your desired endpoint URL, add data sections, choose post types and fields,
       and set access permissions.
 *  1. Publish your API, and it’s ready to use!

### Can I include custom post types in my API?

 * Yes! Custom API Creator works with any public post type, including custom post
   types created by other plugins or themes.

### How do I restrict access to my API?

 * When creating or editing an API, you can choose between public access or restricted
   access. If you select restricted access, you can then specify which user roles
   are allowed to access the API.

### Can I include custom fields in my API response?

 * The current version focuses on core WordPress fields (title, content, excerpt)
   and taxonomies. Support for custom fields is planned for a future update

### How do I use parameters in my API endpoint?

 * You can include parameters in your endpoint URL using square brackets, like this:`
   my-api/[parameter]`. These parameters can then be used to filter your API results.

### Is this plugin compatible with caching plugins?

 * Yes, Custom API Creator is compatible with most caching plugins. However, for
   dynamic APIs that change frequently, you may need to configure your caching plugin
   to exclude your API endpoints.

### Can I modify the JSON structure of the API response?

 * The plugin provides a standardized JSON structure based on your configured sections
   and fields. For advanced customization of the JSON structure, you may need to
   use WordPress filters to modify the response.

### Is Custom API Creator compatible with WordPress multisite?

 * Yes, Custom API Creator is fully compatible with WordPress multisite installations.

### How can I debug if my API is not working as expected?

 * Check your endpoint URL, ensure your access settings are correct, and verify 
   that your selected post types have published content. You can also check your
   server’s error logs for any PHP errors.

### Does this plugin support authentication for private APIs?

 * Custom API Creator uses WordPress’s built-in authentication system. For restricted
   APIs, users must be logged in and have the appropriate role to access the API.

### Can I use this plugin to create APIs for e-commerce data?

 * While the plugin doesn’t have built-in e-commerce fields, you can use it with
   e-commerce post types. For deeper integration with specific e-commerce plugins,
   custom development may be required.

### How often is the plugin updated?

 * We strive to keep Custom API Creator up-to-date with the latest WordPress versions
   and security best practices. Updates are released as needed for bug fixes, security
   patches, and new features.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Custom API Creator〉的開發相關工作。

參與者

 *   [ Mehdi Rezaei ](https://profiles.wordpress.org/mehdiraized/)

[將〈Custom API Creator〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/custom-api-creator)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/custom-api-creator/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/custom-api-creator/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/custom-api-creator/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/custom-api-creator/)。

## 中繼資料

 *  版本 **1.0.4**
 *  最後更新 **2 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.6.5**
 *  PHP 版本需求 ** 7.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/custom-api-creator/)
 * 標籤:
 * [api](https://tw.wordpress.org/plugins/tags/api/)[custom api](https://tw.wordpress.org/plugins/tags/custom-api/)
   [rest-api](https://tw.wordpress.org/plugins/tags/rest-api/)[wp-json](https://tw.wordpress.org/plugins/tags/wp-json/)
 *  [進階檢視](https://tw.wordpress.org/plugins/custom-api-creator/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/custom-api-creator/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/custom-api-creator/reviews/)

## 參與者

 *   [ Mehdi Rezaei ](https://profiles.wordpress.org/mehdiraized/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/custom-api-creator/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.buymeacoffee.com/mehdiraized)