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

Erudus One for WordPress

描述

This plugin uses the Erudus API to display and use product information in WordPress.

Erudus provides a trusted data source for thousands of food products. The Erudus data is sourced directly from food manufacturers and suppliers, giving you reliable data on allergens, nutrients and other important information about food products.

To use this plugin you will need Erudus API credentials.

Shortcode

To show a product specification, you can use the shortcode:

[erudus-product id=”eruduesproductid”]

Simply find the product you need from erudus and replace the id attribute with the correct Erudus ID.

Customisation

To customise the display of product information, copy product.php found in the plugin’s templates folder to a folder named erudus inside your theme and edit the file.

Template Functions

To further customise and use product data, you can use the template function erudus_get_product($erudus_id) to get product data for a product. This will return an object containing all fields found in the API.

Please note that product data is cached by the plugin for 24 hours. Fresh data is only requested when product data is needed.

安裝

  1. Upload plugin to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Enter your Erudus API client keys in Settings->Erudus One

常見問題

Installation Instructions
  1. Upload plugin to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Enter your Erudus API client keys in Settings->Erudus One
How often is product data updated?

The plugin caches each product for 24 hours. After 24 hours it will request a fresh copy of data from Erudus.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Erudus One for WordPress” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Erudus One for WordPress 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0

  • Frist release.