[WordPress] 外掛分享: Taxonomy Metadata

前言介紹

  • 這款 WordPress 外掛「Taxonomy Metadata」是 2010-03-10 上架。
  • 目前有 6000 個安裝啟用數。
  • 上一次更新是 2017-11-28,距離現在已有 2714 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 有 9 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

sirzooro | mitchoyoshitaka |

外掛標籤

api | metadata | taxonomy | infrastructure |

內容簡介

此外掛實現了分類術語的元數據基礎設施,因此您可以向標籤、類別和其他分類術語中添加自定義元數據(按鍵)。大部分代碼來自於sirzooro提交到 WordPress Core Trac的代碼。插件的其餘部分僅是一些單純的補丁,以使其在不修改核心的情況下運作。它不實現任何用於分類術語元數據的UI。

該插件實現了以下功能,您可以使用它們來構建自己的自定義 UI 和顯示代碼:

add_term_meta($term_id, $meta_key, $meta_value, $unique):向術語添加元數據字段。

@param int $term_id 文章 ID。
@param string $key 元數據名稱。
@param mixed $value 元數據值。
@param bool $unique 可選,默認為false。是否不應添加相同的鍵。

@return bool 失敗時為false。成功時為true。

delete_term_meta($term_id, $meta_key, $meta_value):從術語中刪除匹配條件的元數據。您可以基於鍵或鍵和值進行匹配。基於鍵和值進行刪除,將避免刪除具有相同鍵的重複元數據。如果需要,它還允許刪除匹配鍵的所有元數據。

@param int $term_id 術語 ID

@param string $meta_key 元數據名稱。
@param mixed $meta_value 可選。元數據值。

@return bool 失敗時為false。成功時為true。

get_term_meta($term_id, $key, $single):為術語檢索元數據字段。

@param int $term_id 術語 ID。

@param string $key 要檢索的元數據鍵。
@param bool $single 是否返回單個值。

@return mixed 如果$single為false,則會返回一個數組。如果$single是true,那麼它將是元數據字段的值。

update_term_meta($term_id, $meta_key, $meta_value, $prev_value):基於術語ID更新術語元數據字段。使用$prev_value參數區分具有相同鍵和術語ID的元數據字段。如果術語的元數據字段不存在,它將被添加。

@param int $term_id 術語 ID。

@param string $key 元數據鍵。
@param mixed $value 元數據值。
@param mixed $prev_value 可選。在刪除之前檢查的先前值。
@return bool 失敗時為false,成功時為true。

此外掛的開發受到了麻省理工學院莎士比亞項目的支持。

原文外掛簡介

This plugin implements the metadata infrastructure for taxonomy terms, so you can add custom metadata (by key) to tags, categories, and other taxonomies. The majority of the code is from sirzooro’s submission to the WordPress Core Trac. The rest of the plugin is simply some hacky glue to make this work without modifying the Core. It does not implement any UI for taxonomy term metadata.
The plugin implements the following functions, from which you can build your own custom UI and display code:
add_term_meta($term_id, $meta_key, $meta_value, $unique): Add meta data field to a term.

@param int $term_id Post ID.
@param string $key Metadata name.
@param mixed $value Metadata value.
@param bool $unique Optional, default is false. Whether the same key should not be added.

@return bool False for failure. True for success.
delete_term_meta($term_id, $meta_key, $meta_value): Remove metadata matching criteria from a term. You can match based on the key, or key and value. Removing based on key and value, will keep from removing duplicate metadata with the same key. It also allows removing all metadata matching key, if needed.

@param int $term_id term ID

@param string $meta_key Metadata name.
@param mixed $meta_value Optional. Metadata value.

@return bool False for failure. True for success.
get_term_meta($term_id, $key, $single): Retrieve term meta field for a term.

@param int $term_id Term ID.

@param string $key The meta key to retrieve.
@param bool $single Whether to return a single value.

@return mixed Will be an array if $single is false. Will be value of meta data field if $single is true.
update_term_meta($term_id, $meta_key, $meta_value, $prev_value): Update term meta field based on term ID. Use the $prev_value parameter to differentiate between meta fields with the same key and term ID. If the meta field for the term does not exist, it will be added.

@param int $term_id Term ID.

@param string $key Metadata key.
@param mixed $value Metadata value.
@param mixed $prev_value Optional. Previous value to check before removing.
@return bool False on failure, true if success.

Development of this plugin was supported by the Massachusetts Institute of Technology Shakespeare Project.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Taxonomy Metadata」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.1 | 0.2 | 0.3 | 0.4 |

延伸相關外掛(你可能也想知道)

  • InfiniteWP Client 》InfiniteWP 可讓使用者從自己的伺服器管理無限數量的 WordPress 網站。, 主要功能:, , 自行託管系統:位於您自己的伺服器上,完全受您控制, 一鍵更新所有網站...。
  • WP Consent API 》WP Consent API 是一個外掛,可以標準化插件之間同意的同意類別溝通。它需要使用 Cookie 標語插件和至少一個支援 WP Consent API 的其他插件。, , 有了這個插...。
  • Disable REST API 》這是最全面的 WordPress REST API 存取控制外掛!, 輕鬆安裝,安裝後不需要額外設定即可使用。只需上傳並啟用,整個 REST API 將無法被一般訪客存取。, 但如...。
  • Mailgun for WordPress 》Mailgun 是超過10,000名網站和應用程式開發人員信任的電子郵件自動化引擎,用於發送、接收和追踪郵件。藉助Mailgun強大的郵件API,開發人員可以更多時間建立...。
  • Make Connector 》Make 是一個視覺化平台,讓你可以在幾分鐘內設計、建立和自動化任何事情 - 從簡單的任務到複雜的工作流程。使用 Make,你可以在 WordPress 和數千個應用程式...。
  • ACF to REST API 》此 WordPress 外掛在WordPress REST API中提供了Advanced Custom Fields的端點, 詳細資訊請參閱GitHub:https://github.com/airesvsg/acf-to-rest-api/。
  • WordPress REST API Authentication 》WordPress REST API 預設是鬆散的端點,駭客可以通過這些端點遠程控制您的網站。 您不希望駭客可以透過 WordPress 登錄和 WordPress 註冊或任何其他端點來獲...。
  • Disable WP REST API 》這個外掛只有一個功能:禁用沒有登入 WordPress 的訪客使用 WP REST API。不需要任何設定。, 這個外掛只有 22 行短小的程式碼(少於 2KB)。因此它非常輕量、...。
  • WPGet API – Connect to any external REST API 》簡單地連接WordPress至外部API的最簡單方式。, , WPGetAPI 可輕鬆地從無限量的第三方 REST API 發送和接收資料,然後使用「Shortcode」或「Template Tag」格...。
  • WP REST Cache 》如果您在使用 WordPress REST API 時遇到速度問題,這個外掛將允許 WordPress 快取 REST API 的回應,使其更快。, 此外掛提供以下功能:, , 快取所有預設的 W...。
  • WP REST API Controller 》WP REST API Controller 外掛提供使用者易用的圖形化介面,使管理員可以切換 WordPress 核心和自訂文章類型以及分類法的可見性和端點,同時也可以自訂 API 回...。
  • WordPress REST API (Version 2) 》WordPress 正轉變成一個完整的應用程式框架,因此需要新的 API。這個專案的目的是創建一個易於使用、易於理解且經過良好測試的框架,用於創建這些 API,以及...。
  • WP REST API – OAuth 1.0a Server 》使用這個外掛,您可以將應用程式連接至您的 WordPress 網站,而不必透露您的密碼。, 此外掛使用 OAuth 1.0a 協議,允許委派授權,即允許應用程式使用一組次要...。
  • Contact Form to Any API 》, 「Contact form 7 to Any API」是一款強大的外掛,能夠將聯絡表單 CF7 的數據傳送至任何第三方服務。使用者可以透過這款外掛將數據發送到客戶關係管理(CRM...。
  • Envato Toolkit 》這個外掛包含一個三個檔案的程式庫和視覺化介面,用於驗證客戶購買代碼、獲取特定 Envato 用戶的詳細信息(國家、城市、總追隨者數量、總銷量、頭像),獲取...。

文章
Filter
Apply Filters
Mastodon