Simply Show Hooks

Simply Show Hooks

By Stuart O'Brien, cxThemes

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!
undefined

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.
Version
1.2.1
Last Update
8 years ago
Download
69,292+
Tested up to:
4.6.28
Categories:
General

Screenshots

Alternative Plugins for Simply Show Hooks

Choose whether to show or hide the author's name.

Categories: General

A WordPress plugin which shows the current template file name, the current theme name and included template files' name in the tool bar.

Categories: General

Note to all used who tried the version 2.0 and 2.0.1 there were was bugs in the logic which upgrades the previous version of the Simply Exclude config …

Categories: General

Simply shows the ID of Posts, Pages, Media, Links, Categories, Tags and Users in the admin tables for easy access.

Categories: General

Requires at least: 3.7 Tested up to: 4.3.1 Stable tag: 1.0.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html

Categories: General

The Show IDs plugin displays the ID of all posts, categories, pages, taxonomies, users, tags, and more.

Categories: General

Simply Instagram displays your photos from Instagram either using Widget or Short Code.

Categories: General

This plugin shows post/page/category/tag/comment/media/user IDs on admin's edit post/page/category/tag/comment/media/user pages.

Categories: General

Shortcodes to wrap around text, which specify at what date or time that content should appear or disappear, either once, or on a recurring basis.

Categories: General

Discover the Lists with Simply Show Hooks

Wordpress Developer Tools

By integrasolid

Faves

By Glenn Nall

WP.org Favorites

namaroopa before migrate

By lifeofaclickwpfav

Development

By mandava

Useful Plugins for WordPress development.

vol intsall

By vane vrb

startup

By Vitor Francisco Freitas dos Santos

marketing digital inicial

Credit Platform

By Elliot Gerchak

exp

By kan imai

FarrowSystem.EU - ALL Plugins

By Andreas Tyrosvoutis

A save of all the plugins from when it was migrated from multisite. Just for historical purposes.

OS WooCommerce Plugins New Install

By Brett Walling

My list of plugins I use for WooCommerce sites.