该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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 selects the hook name ready to be easily copied.

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

Kadence theme required.

Kadence Visual Hook Guide Hooks Live Demo

Live Demo

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” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0

Initial Release.