[WordPress] 外掛分享: Hikari Hooks Troubleshooter

首頁外掛目錄 › Hikari Hooks Troubleshooter
全新外掛
安裝啟用
尚無評分
5821 天前
最後更新
問題解決
WordPress 2.8.0+ v0.01.06 上架:2010-04-09

內容簡介

Hikari Hooks Troubleshooter(豎琴鉤子故障檢測器)創建了一個可拖動窗口,顯示有關 WordPress 鉤子的信息。它列出了所有至少有一個函數註冊的鉤子(動作和過濾器),對於每個鉤子,它顯示了按優先級排序的已註冊函數列表!

這個窗口只對註冊用戶可見,您可以選擇誰能夠看到它,並設置它是否可見。它在 WordPress 頁面中運作,無論是前端還是管理區域。

當您在管理頁面時,它還會顯示與該特定頁面相關的特殊操作列表,幫助插件開發人員將功能連接到特定的管理頁面,而不是整個管理區域!還可以提供所有條件標籤的列表,通知哪些標籤返回 true,哪些返回 false,對於您想要的任何頁面都可以。

條件標籤和鉤子列表是基於 Frank Bueltge 的 wp_view_type.php。原始代碼經英語翻譯後,移植到了可在瀏覽器內拖動、最小化和關閉的窗口中。

管理操作列表是基於 Dustin Dempsey 的 Show Page Hooks 插件,並增加了一些鉤子。

特點

該插件創建了一個窗口,可以拖動、最小化和關閉
窗口在網站的管理面板和前端都有效
您可以選擇誰可以看到窗口,而訪問者永遠看不到它

該窗口為插件開發人員提供了許多有用的信息:

動作和過濾器鉤子以及鉤子函數,按調用優先級排序
所有條件標籤,通知哪些返回 true,哪些返回 false
出現在管理頁面中的所有操作,這些操作對每個頁面都是具體的,從而可以在特定的頁面上掛鉤功能
運行的操作被標記,讓您知道每個特定頁面中使用的操作

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.01.06) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Hikari Hooks Troubleshooter」→ 直接安裝(推薦)

原文外掛簡介

Hikari Hooks Troubleshooter creates a draggable window with informations about WordPress hooks. It lists all hooks (actions and filters) that have at least a function hooked to them, and for each hook there’s a list of hooked functions, sorted by priority!
The window is visible only to registered users, and you can choose who will be able to see it, and set if it should be visible or not. It works in WordPress page, be it frontend or admin area.
When you are in an admin page, it also shows a list of special actions related to that specific page, helping plugin developers to attach features only to special admin pages, instead of the whole admin area! A list of all conditional tags is also available, informing which tags return true and which ones return false, for any page you want!
The list of conditional tags and hooks is based on Frank Bueltge‘s wp_view_type.php. The original code was translated from germany to english, and ported to a draggable window that can be moved inside the browser, minimized and closed.
The list of admin actions is based on Dustin Dempsey‘s Show Page Hooks plugin, and a few more hooks were added.
Features

The plugin creates a window, that can be dragged, minimized and closed
The window works both in website’s admin panel and frontend
You can choose who can see the window, while visitors never see it

The window presents many useful information for plugin developers:

action and filter hooks, and functions hooked to them, sorted by the priority they are called
all conditional tags, informing those returning true and those returning false
all actions present in admin pages, that are specific to each page, so that we can hook features that we want to happen only on those specific pages
actions that were run are flagged so, allowing you to know which actions are used in each specific page

延伸相關外掛

文章
Filter
Mastodon