[WordPress] 外掛分享: THA Hooks Interface

首頁外掛目錄 › THA Hooks Interface
WordPress 外掛 THA Hooks Interface 的封面圖片
20+
安裝啟用
★★★★★
5/5 分(1 則評價)
3842 天前
最後更新
問題解決
WordPress 3.5+ v1.1.1 上架:2013-11-13

內容簡介

THA Hooks Interface 是由 ThematoSoup 開發的 WordPress 外掛。它創建了一個設定頁面,讓您可以使用由Theme Hook Alliance定義的鉤子來添加程式碼 (PHP 和 HTML)。

WordPress 核心提供了一組動作鉤子和模板標記,但並未涵蓋許多常見的使用情況。Theme Hook Alliance 是一個社區驅動的努力,在這個努力中,大家同意使用一組第三方動作鉤子,並且THA相容的佈景主題必須實現它們,以獲得所需的一致性。

THA Hooks Interface 會檢查主題是否使用了這些標準化鉤子,如果使用了,它將創建一個介面,您可以在幾乎任何部分添加程式碼。

如果您的啟用佈景主題不支援Theme Hook Alliance鉤子,您仍然可以使用 wp_head 和 wp_footer 鉤子,它們是標準的 WordPress 鉤子。另外,如果您的佈景主題未支援 THA 鉤子,請聯繫佈景主題開發人員解決這個問題 🙂

橫幅圖片來源:http://www.flickr.com/photos/notahipster/3974559627/

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「THA Hooks Interface」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

THA Hooks Interface is a WordPress plugin developed by ThematoSoup. It creates a settings page which allows you to add code (PHP and HTML) by using hooks defined by the Theme Hook Alliance.
Core WordPress offers a suite of action hooks and template tags, but does not cover many of the common use cases. The Theme Hook Alliance is a community-driven effort to agree on a set of third-party action hooks that THA-compatible themes pledge to implement in order to give desired consistency.
THA Hooks Interface checks whether a theme uses these standardized hooks and if it does, it creates an interface where you can add code to almost any part of the theme.
If your active theme does not declare support for Theme Hook Alliance hooks, you can still use with wp_head and wp_footer hooks which are standard WordPress hooks. Also, if it doesn’t, please bug your theme developer about it 🙂
Banner image credits: http://www.flickr.com/photos/notahipster/3974559627/

文章
Filter
Mastodon