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.

List Out All Extension Hooks

Everyone’s favorite…Stephen Lewis wrote up some handy terminal commands that retreive all of the available extension hooks for a given ExpressionEngine installation. From the script comments:

A couple of useful bash one-liners for finding all of the extension hooks in a given ExpressionEngine installation. Here’s what it does:

  1. Finds all of the native hooks, and any third-party hooks;
  2. Sorts them alphabetically;
  3. Outputs them to STDOUT or a file of your choosing.

Why would you need this? The most obvious reason is so you can easily find what’s available to you while developing an EE site, especially if it is one that you inherited or jumped into mid-project.

There are two commands: one that outputs the extension hooks via the STDOUT and one to a file. If you like these commands, it’ll be easier to save store them in an alias for easier retrieval or in a tool like TextExpander.

Posted on Jan 13, 2012 by Ryan Irelan

Filed Under: Development Tools