[wp-hackers] Way to tell what hooks are supported

Mark Jaquith mark.wordpress at txfx.net
Fri Aug 12 11:49:53 GMT 2005


I was wondering if I could get some feedback on this idea:
http://trac.wordpress.org/ticket/1579

Basically, it's an array of all the hooks that are supported, plus a 
function, hook_exists('hook_name') which returns does an in_array call 
which returns true or false.  Might make it easier for plugin authors to 
know if a hook is supported, instead of having to do version voodoo and 
research.  It would also make the hooks known for people using SVN 
versions, where version number voodoo may be impossible.  I can think of 
one con: as new hooks are added, we'll have to add to the list.  But 
heck, I'd volunteer to monitor the changelog for new hooks and remind 
the devs to add them to the list.

Thoughts?

-- 
Mark Jaquith
http://txfx.net/
MCincubus @ #wordpress



More information about the wp-hackers mailing list