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.

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 !