A couple of useful bash one-liners for finding all of the extension hooks in a given ExpressionEngine installation. Here’s what it does:
- Finds all of the native hooks, and any third-party hooks;
- Sorts them alphabetically;
- 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.