The Difference Between WordPress Filters and Actions

Thanks to Otto for making the difference between actions and filters clear:

Filters filter things. Actions do not. And this is critically important when you’re writing a filter. A filter function should never, ever, have unexpected side effects.

There, you go, pretty straightforward!  He actually makes some really good, concise points about the difference between these terms and as he says: please learn this lesson well.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s