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

Visual Hook Guide for Kadence

外掛說明

This plugin is for use by developers working with the Kadence theme and adds a Kadence Hooks item in the WP admin bar on the front end.

Clicking Action Hooks item in the submenu will display the currently available Kadence action hooks on that page. Clear clears the hooks.

Clicking anywhere on a hook copies the hook name to your clipboard.

The hook name is also shown as the tooltip when hovering on a hook.

Kadence theme required.

Automatic Installation

Search for visual hook guide kadence from within your WordPress plugins’ Add New page and install.

Manual Installation

  1. Click on the Download button to download the plugin.
  2. Upload the entire kadence-visual-hook-guide folder to the /wp-content/plugins/ directory.
  3. Activate the plugin through the Plugins menu in WordPress.

Credits

This plugin is based on my Genesis Simple Hook Guide which was made possible thanks to

螢幕擷圖

  • Screenshot showing the WP admin bar menu item.
  • Screenshot showing the actions hooks on the page.

常見問題集

My fixed header appears to be offset from the top when scrolling down with the hooks showing

Use your browser DevTools, locate the the div having a class of item-is-fixed (this is usually div.site-main-header-wrap) and uncheck position: fixed temporarily.

Is it possible to view the hooks when the WP admin bar is not visible?

Yes. Add ?kvhg_hooks=show at the end of your page URL.

Is this an official plugin by Kadence WP?

No. This is a third party plugin created by a community member.

使用者評論

2021 年 2 月 2 日
What a smart idea to make a plugin to visually output the various hooks. Not only for developers but also for everybody who wants to make use of the Kadence elements and insert them with precision in right place on a page.
閱讀全部 4 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Visual Hook Guide for Kadence〉的開發相關工作。

參與者

將〈Visual Hook Guide for Kadence〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0.1

Added copy to clipboard function.

1.0

Initial Release.