Welcome, visitor! Log in
 

KB Plugins blog

The best Wordpress plugins are free

Bugfix in the hooks database

Prior to indexing WP 2.8, I made a long-overdue fix to my WordPress hooks index. It now indexes hooks called by do_action_ref_array(), something that earlier versions omitted.

As a result, you may find that some hooks that were defined prior to 2.8 show up in my site as being added in 2.8. Well, now you know why. When I have more time, I’ll go back and re-index all the earlier versions to correct this.

Dazzled? Confused? Disagree? Write a comment »
There have been 5 comments so far.

5 Comments

  1. Posted July 16, 2009 at 11:48 am | Permalink

    Superb work Adam, if you need help on this, let me know!

  2. Posted October 9, 2009 at 5:02 am | Permalink

    Hello,

    great work.

    do you plan to make those tools public (building the wp filter/hook database) for plugins implementing their own hooks and filters.

    thank you

  3. Posted October 9, 2009 at 7:08 am | Permalink

    No, since it’s messily integrated into my site’s code, but it’s not rocket science–build a regex to search for do_action, apply_filters, and do_action_ref_array; crawl each file in the WP build looking for those; and put the results in a database. But you don’t need any of that code to implement your own hook in a plugin.

  4. Posted October 10, 2009 at 4:46 pm | Permalink

    Thanks Thus, thought your code was a bit more sophisticated making also a cross ref between do_action, apply_filters, add_filter, add_action.

  5. Posted October 10, 2009 at 5:33 pm | Permalink

    sorry wanted to say Thanks Adam !! lol !

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Comment Guidelines
  • Yes, your comments will be visible to everybody. You can disagree, but civilly.
  • I have the right to delete abusive comments.
  • Allowed HTML: <a> <b> <blockquote> <cite> <code> <em> <i> <strong>
  • 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 I am now employed and not just a student, I provide only minimal support for my plugins. Sorry.

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.