Simply Show Hooks

Plugin Banner

Simply Show Hooks

by stuartobrien

Download
Description

Up until now the way theme and plugin developers find where to hook into with their add_action() and add_filter() functions is either to search through the WordPress code base, or find find a reference to the hook in the codex.

What Simply Show Hooks does is give you a simpler way to see these hooks by displaying them in-line on the page that you are on. All that’s left to do then is copy the hook you need, and paste it in to your add_action and add_filter functions like this:
add_action( ‘wp_enqueue_scripts’, ‘my_enqueue_scripts_action’ );
add_filter( ‘the_title’, ‘my_the_title_filter’ );

I made this plugin so I could find WordPress hooks quicker and I use it all the time, so I thought I’d share it and see if it could help others.

Enjoy!

Please note that in odd cases, due to the nature of actions and filters, the plugin may display a hook in place that disrupts the display of your site – in which case we always display the ‘Hide Hooks’ button so you can switch it back off. This won’t disrupt the look of you site to anyone but you so don’t worry.

  1. Install either via the WordPress.org plugin directory, or by uploading the files to your server.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Once the plugin is activated you will see ‘Simply Show Hooks’ in the Admin Bar at the top of your site or admin pages.
  4. Clicking the ‘Show Hooks’ button will start showing you all the action hooks in the page you’re on.
  5. You can continue to navigate around until you’ve found the action hook you’re looking for, then switch off by clicking ‘Hide Hooks’.
  6. Simple but effective. Enjoy!
  1. Here you can see how you can quickly find any action hook by using Simply Show Hooks while you're on any WordPress wp-admin page.

    Here you can see how you can quickly find any action hook by using Simply Show Hooks while you're on any WordPress wp-admin page.

  2. Here you can see Simply Show Hooks doing it's thing on any page of your website.

    Here you can see Simply Show Hooks doing it's thing on any page of your website.

Awesome!!!

By dimkiriakos on May 14, 2024

This is one of the MOST important plugints for developers.

I ve tested in WordPress 6.5.3 and it works perfectly fine!!!!

Please WordPress Team remove the notation that this plugin is not tested for 6.5.3 version! This is WRONG!!!

Perfecto para encontrar sitios de enganche!

By gtamborero on September 6, 2023

Lo instalas y al clicar arriba en "show hooks" te mostrará en la página que estés todos los hooks disponibles y ubicaciones en el mismo front end. Genial!

Still works as expected

By Joona Nuutinen (C2162) on March 22, 2023

Not updated in years, but still works well!

Helpful plugin for me

By imransajeb (alltec) on February 1, 2021

Thanks

Good

By Arshid (arshidkv12) on October 17, 2020

Good Plugin

Still working like charm

By Ankur (ankurtyagi.it) on July 3, 2020

WordPress 5.4 Woocommerce 4+

Amazing plugin abandoned by the developer

By FlourishDNA on June 22, 2020

This is one of the plugins that I use on a daily bases but the sad part is that the developer abandoned it. It has stopped working on many themes. I wish to contribute to the development of the plugin if someone wants to keep it alive.

useful plugin

By auludag on June 6, 2020

thanks to developers for this.

Awesome plugin, it helps developers a lot

By idpokute on May 29, 2019

This plugin helps me a lot to understand what functions are attached, and I could save a ton of my hours. I hope developer continue developing. Thank you so much

Great tool! Still works with WP 5.1

By nuclearping on March 9, 2019

Very helpful tool. Still works with WordPress 5.1.

1.3.0

  • Restrict hook display to administrators before runtime hooks are attached.
  • WordPress.org Plugin Check compliance: output escaping, nonce verification, and input sanitization.
  • Updated readme for WordPress 7.0, GPLv2 license, and valid plugin headers.
  • Improved cookie security with httponly and secure flags.
  • Updated plugin and author URIs to HTTPS.
  • Code standards cleanup and removal of unused code.

1.2.1

  • Respect existing query strings when switching the Show Hooks on and off.
  • Changed the prefix slug ssh to a more unique cxssh.
  • Use mono-space font to display hooks.
  • Added filters to allow you to deactivate our plugin on the frontend, backend or sitewide – simply_show_hooks_active, simply_show_hooks_backend_active, simply_show_hooks_frontend_active.

1.1.1

  • Fixed small typo showing Filter as Action in heading.

1.1.0

  • Added ‘Show Action & Filter Hooks’ that shows all the Actions and Filters in a Sidebar.
  • Added a hook name heading to the dropdown menu to easier identify, copy and use the hooks.
  • Added an A and F to identify whether a hook is an Actions and Filter.
  • Changed the color of the Actions and Filters hook markers.

1.0.0

  • Initial release.
Back to top