Published by Mijingo

movie icon image

EE Insider Blog

Spend your time learning and developing sites with ExpressionEngine and we'll use this blog to keep you informed of all the news related to ExpressionEngine and CodeIgniter.

» Read more in the Archives.

» Have a tip? Send us your EE news.

Learn ExpressionEngine Today

Over a series of 8 videos, watch and learn as Ryan builds an entire ExpressionEngine website from beginning to end. Get started now.

A Case for Custom Extension Hooks

Everyone’s favorite add-on developer with the last name Lewis, Stephen Lewis, says it’s important for add-on developers to include hooks in their add-ons to allow for custom extensions.

Not all feature requests are created equal. Some are extremely insightful and far-reaching, and improve the add-on in ways you never imagined. Most are narrow, case-specific, and don’t belong in the core product.

Extension hooks provide a means of dealing with the latter in a way that doesn’t adversely affect the core add-on.

He continues with an example of his Campaigner add-on and how allowing for custom extensions lets him, in his own words, abdicate responsibility, for special features or customizations that a developer might need for their project.

Solid advice.

Posted on Dec 01, 2011 by Ryan Irelan

Filed Under: Development Tools, EE Add-ons, ExpressionEngine 2