KB Plugins

The best Wordpress plugins are free

Print this post

Improving the WP Hooks Database

After announcing the WordPress hooks database last night, I went back and made several fixes and improvements.

The biggest improvement: When viewing information about a single hook, my site automatically scrapes the official WordPress codex (don’t worry automattic, it’s cached). If it finds an entry for that hook, it displays it right there above the hook’s version history.

Another big improvement: Not only do you get to see the codex’s documentation (if it exists for the hook), but my site will also generate a list of (possibly) related hooks. Don’t you hate it when you think you found the right hook, but it turns out to be not quite what you needed? Well, there you go–check out the related hooks.

With these two features, the database is now a fully featured, automatic alternative to the previous attempt to make a hooks database (over at flatearth.org ), which appears to have been abandoned.

I also squashed some bugs. There were a couple 404s in the database that shouldn’t have been there, and the feedback link was broken initially, and there were some minor HTML validation errors.

I’ve been getting lots of hits, and it looks folks are linking to it from the codex and from del.icio.us, but I have yet to hear much feedback. Don’t be a lurker, mate…

3 comments »

1
Sören writes
at 3:39 pm on January 11, 2008 #

Adam, this is a really great site and making my plugin support much easier. Thanks a lot. Additional it would be helpful also having a link “deleted hooks” with each version.

2
Thus saith Adam
at 10:48 am on January 15, 2008 #

Yeah, I’ve got that in mind for the next time I get a chance to work on it. I also want to automatically detect how many arguments the hook can take. It may be a few weeks until I can work on it again, though.

3
Thus saith Adam
at 5:22 pm on February 11, 2008 #

It now displays deprecated hooks.

Leave a comment

Comment Guidelines
  • Yes, your comments will be visible to everybody. (Unless you use the private contact form.)
  • Allowed HTML: <a> <b> <blockquote> <cite> <code> <em> <i> <strong>
  • Code: Put code in `backticks` (above your "Tab" key) or it won't display well
  • Gravatars: To override the default image by your comment, use a gravatar
  • Links: If you include more than one link, your comment will go into the spam queue

Please read before commenting: Because my real job has me swamped at the moment, I am not supporting my plugins at this time. Sorry. This may last several weeks.

If you have a bug report, feature request, or other general feedback about a plugin, please leave a comment—but do not expect an immediate response. If you are requesting help, though, please check the plugin's documentation thoroughly rather than ask your question as a comment.

Thank you for your understanding.