[WordPress] 外掛分享: Metabox with API

首頁外掛目錄 › Metabox with API
全新外掛
安裝啟用
尚無評分
1549 天前
最後更新
問題解決
WordPress 5.4+ PHP 7.0+ v1.0 上架:2020-06-22

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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.

文章
Filter
Mastodon