In: , , ,
On: 2006 / 05 / 16
Shorter URL for this post: http://ozh.in/d2

Basically, a plugin for WordPress creates a PHP function (called a filter or an action) which is triggered when a particular event (called a hook) occurs. When several filters are supposed to be triggered by the same hook, you can define their priority.

When you're writing a plugin and you're facing unexpected behavior, it may be a priority issue : some internal function, or a function from another plugin you had forgotten about, is running before your own and processing the same bits you're trying to pass through your function.

Wouldn't it be cool if you could easily list all filters and action for every hook, in their priority and execution order ? Would be cool. Well, it is cool actually : get your hands on WordPress Hooks and Filters Flow.

Shorter URL

Want to share or tweet this post? Please use this short URL: http://ozh.in/d2

Metastuff

This entry "Plugin Debugging : Hooks and Filters Flow" was posted on 16/05/2006 at 9:50 pm and is tagged with , , ,
Watch this discussion : Comments RSS 2.0.

One Reply

  1. Jayson says:

    What I want to do on my blog, is every few hours take the oldest post and move it to the
    front of the queue, all automatically. Anyone know if there is a plugin that can do this or
    a simple way to set up another plugin to do this (use my own feed perhaps)?
    Thanks.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar and sign for a free account
Spam: Various spam plugins may be activated. I'll put pins in a Voodoo doll if you spam me.

Read more ?