Simple Hook Widget

plugin banner

Allows developers to create a drop down of hooks to be selected from a widget, for on-the-fly widgets without the fuss, or just easily test hooks.

Author:Eddie Moya (profile at wordpress.org)
WordPress version required:2.8
WordPress version tested:3.3.2
Plugin version:2
Added to WordPress repository:09-12-2011
Last updated:15-03-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:
Total downloads:3 281
Active installs:10+
plugin download
Click to start download

This widget allows the user to insert a hook, with a name of their choosing, in any sidebar.

The hook can be anything, an existing hook from the WordPress Core, a plugin, a theme, or something you've come up with on the fly. Once the hook exists, your plugins, your theme, or the WordPress Core to make something happen with that hook.

This can be used in conjunction with other more complex plugins, to allow you to trigger a hook from the sidebar (yes, that is intentionally vague). It can also serve as a quick alternative to making very simple widgets tied to code from a theme. Say you have a chunk of code which already exists on your site, you'd like to also have it placed in a sidebar, but don't want to make a widget out of it (since its entirely theme-centric). You could simply hook this chunk of code to a custom hook and use the Simple Hook Widget to place that custom hook in the sidebar.

This is clearly not the best method of widget development, but there may be times where such on option is useful to a developer in a pinch.

Update 2.0

  • New filter which allows developers to specify what hooks are available to choose from.

Warning: Use this plugin with care. If you are not a developer and don't know what 'hooks' are, this plugin is not for you. This plugin will allow you to enter ANY hook, and will run it in the sidebar - that includes core WordPress loaded with actions that could result in problems for your site.


FAQ
ChangeLog