Ways to identify WordPress hooks
As a newbie WordPress developer, I have been able to pickup the basics quite quickly. One oft the basics being WordPress hooks. Filters and action hooks are very useful as you can dramatically alter the appearance or actions related to a specific section or action without having to fiddle with the original code.
Finding the right hook can be tough, so in my need to solve the problem of finding hooks I have used the following methods:
Command line:
Filters:
grep -nrI 'apply_filters' .
Actions:
grep -nrI 'do_action' .
Plugin:
Simply show hooks Plugin
A nifty plugin that display filters and action hooks visually on a page. So very useful for identifying new hooks that you can leverage.
Available on the WordPress Plugin Directory:
https://wordpress.org/plugins/simply-show-hooks/