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
Superb work Adam, if you need help on this, let me know!
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
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, anddo_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.Thanks Thus, thought your code was a bit more sophisticated making also a cross ref between do_action, apply_filters, add_filter, add_action.
sorry wanted to say Thanks Adam !! lol !