Find Genesis action hooks quick and easily by seeing their actual locations inside your theme.
This is a simplified version of Genesis Visual Hook Guide plugin by Christopher Cochran with the following changes:
- Hooks are dynamically generated vs being hardcoded
- Clicking anywhere on a hook selects the hook name ready to be easily copied
- Does not show filters and markup
Once installed, this plugin adds a dropdown menu to the admin bar to see the available hooks on the page being viewed in the front end.
Credits:
- Gary Jones for the idea
- Sal Ferrarello for the code
Genesis Theme Framework required.
- Click on
Clone or download
button, thenDownload ZIP
. - Extract the zip file and upload the entire
genesis-simple-hook-guide
folder to the/wp-content/plugins/
directory - Activate the plugin through the 'Plugins' menu in WordPress
Since the site header is fixed in Genesis Sample 2.6.0, when hooks are shown, the header is hanging in the middle of the page.
You have 2 options.
a) Add top: 0
to .site-header
in CSS. This will cover some hooks above the header.
b) In the 960px min-width media query, comment out the code that makes the site header fixed temporarily.
Sure! The views are triggered by a query string. Simply add ?gshg_hooks=show
to the end of the URL.
0.0.1
- Initial Release
0.0.2
- Changed plugin file name to
genesis-simple-hook-guide.php
- Added
Text Domain: genesis-simple-hook-guide
- esc_url add_query_arg() and remove_query_arg()
- Added a check for Genesis so the admin bar links get added only when Genesis is active
- Changed
g_hooks
togshg_hooks
0.0.3
- Replaced onclick with event listener
0.0.4
- Updated style.css for Genesis Sample 2.6.0