[wp-hackers] WP Roadmap Project

Stephen Rider wp-hackers at striderweb.com
Fri Oct 31 04:04:21 GMT 2008

On Oct 30, 2008, at 7:23 AM, Viper007Bond wrote:

> I'm pretty sure there aren't any hooks before plugins are loaded.

Working off of dim memory, I think there were, actually....

> You still haven't offered a valid reason of why this couldn't just  
> be a
> couple line plugin. :P

Open a file, write one line, save, and go.


Create a new file, fill in headers, write the function and hook, go  
into admin and activate, and go.

Oh, and an error in my statement below.  I added an error_log to the  
do_action() **function**, not filter.


> On Thu, Oct 30, 2008 at 4:42 AM, Gaarai <gaarai at gaarai.com> wrote:
>> I thought of doing that, but it really wouldn't offer exactly what  
>> I need.
>> If I implemented this hook via a plugin, it would miss a number of  
>> calls by
>> the time it gets loaded.

>> Viper007Bond wrote:
>>> You know you could have just used the "all" hook...
>>> add_action( 'all', 'action_debug', 10, 100 );
>>> On Wed, Oct 29, 2008 at 8:51 PM, Stephen Rider <wp-hackers at striderweb.com
>>>> wrote:
>>>> A while back I was trying to track the specific order of actions  
>>>> and
>>>> filters.  (Working on a plugin).  I hacked the core files and  
>>>> added an
>>>> error_log() to the beginning of the do_action [function], telling  
>>>> me which
>>>> action/filter was just called.
>>>> Worked like a champ -- answered my question in about 30 seconds  
>>>> of work
>>>> rather than combing through the files tracing the execution  
>>>> order....

More information about the wp-hackers mailing list