Title: Metabox with API
Author: Saumil Nagariya
Published: <strong>2020 年 6 月 23 日</strong>
Last modified: 2022 年 2 月 4 日

---

搜尋外掛

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

![](https://ps.w.org/metabox-with-api/assets/icon-256x256.png?rev=2328980)

# Metabox with API

 由 [Saumil Nagariya](https://profiles.wordpress.org/saumil122/) 開發

[下載](https://downloads.wordpress.org/plugin/metabox-with-api.1.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/metabox-with-api/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/metabox-with-api/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/metabox-with-api/#developers)

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

## 外掛說明

The objective of the plugin is to generate product button based on the data fetched
from the API. The api data should be generated in the same manner as provided by
the plugin (refer cateogory.json & product.json, included in “data” directory).

Once you activate the plugin, two tables `wp_metabox_categories` and `wp_metabox_products`
are created. The “Metabox API setting” option (under the “Setting” section) allows
to store category api url and product api url. After storing both APIs, there is
option to fetch the data. It means category and product data are stored in the respective
database table (i.e. `wp_metabox_categories` and `wp_metabox_products`). We can 
also fetch the data at regular period of time. The plugin supports two level of 
category only (i.e. Parent and child category).

The plugin also generate the metabox (named “Metabox API”) on the post or the page.
Once you select the category from “Category” dropdown / select box, the product 
specific to that category will be populated to “Product” dropdown / select box. 
After selecting the product, you can generate the shortcode by clicking “Generate
code” button. The generated shortcode can be used on any post or page which will
display as product button in frontend. Anyone can easily modify the output of the
generated shortcode.

If anyone want to modify the output of the shortcode or the attributes/fields of“
cateogory” & “Product” APIs, can reach out to me. Please provide the feedback or
suggestion to me.

## 螢幕擷圖

[⌊Metabox API Setting page.⌉⌊Metabox API Setting page.⌉[

Metabox API Setting page.

[⌊Metabox API Setting page : Stored api and fetch option.⌉⌊Metabox API Setting page:
Stored api and fetch option.⌉[

Metabox API Setting page : Stored api and fetch option.

[⌊Metabox API generated while adding/editing the post.⌉⌊Metabox API generated while
adding/editing the post.⌉[

Metabox API generated while adding/editing the post.

[⌊Metabox API generated while adding/editing the page.⌉⌊Metabox API generated while
adding/editing the page.⌉[

Metabox API generated while adding/editing the page.

[⌊Metabox API displays the generated shortcode for product.⌉⌊Metabox API displays
the generated shortcode for product.⌉[

Metabox API displays the generated shortcode for product.

[⌊Multiple shortcode can be included on the specific post or page.⌉⌊Multiple shortcode
can be included on the specific post or page.⌉[

Multiple shortcode can be included on the specific post or page.

[⌊The product button will be created on frontend.⌉⌊The product button will be created
on frontend.⌉[

The product button will be created on frontend.

## 常見問題集

### Is there any configuration require for this plugin?

No

### Is all features of this plugin completely free?

Yes

### Where can I get support?

For support, please contact at saumil122@gmail.com.

### Where can I report bug?

For reporting related bugs, please contact at saumil122@gmail.com.

### Where can I find the sample of Category & Product API?

You can find the sample json for Category(category.json) & Product(product.json)
API inside “Data” directory.

## 使用者評論

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

## 參與者及開發者

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

參與者

 *   [ Saumil Nagariya ](https://profiles.wordpress.org/saumil122/)

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

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

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

## 變更記錄

#### 1.0

 * Initial release.
 * Category & Product API (refer category.json & product.json inside “data” directory)

## 中繼資料

 *  版本 **1.0**
 *  最後更新 **5 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.4 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.9.15**
 *  PHP 版本需求 ** 7.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/metabox-with-api/)
 * 標籤:
 * [custom metabox](https://tw.wordpress.org/plugins/tags/custom-metabox/)
 *  [進階檢視](https://tw.wordpress.org/plugins/metabox-with-api/advanced/)

## 評分

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

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

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

## 參與者

 *   [ Saumil Nagariya ](https://profiles.wordpress.org/saumil122/)

## 技術支援

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

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

## 贊助

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

 [ 贊助這個外掛 ](https://paypal.me/SaumilNagariya)