[wp-hackers] hook availability

Owen Winkler ringmaster at midnightcircus.com
Mon Jan 9 05:12:57 GMT 2006


Andy Skelton wrote:
> On 1/8/06, David House <dmhouse at gmail.com> wrote:
>> On 08/01/06, Amit Gupta <wp at igeek.info> wrote:
>>> is there a way by which a plugin can check whether a hook is available or
>>> not?
>> http://trac.wordpress.org/ticket/1579
>>
>> I'd like to see this committed, although it's probably not up to date.
>> Mark Jaquith, this is your baby, can this be updated to 2.0?
> 
> I would advise against committing this patch as-is. There are already
> some hooks that only exist if the theme author was keen enough to use
> them, such as wp-head and wp-footer. We saw a significant fraction of
> themes missing these hooks since 1.5 and we'll see more.

Which is a great excuse in 2.0 for these specific hooks not to be added 
using the built-in array, but via the the functions.php of the theme - 
since the theme should tell whether it provides the hook or not.

Owen



More information about the wp-hackers mailing list