Concept Flow - add_action and add_filter
WordPress loads core
Hooks registered with add_action/add_filter
WordPress runs event or filter point
Check for hooked functions
No
Skip
If filter, modify data and return
Continue WordPress execution
WordPress loads and registers hooks with add_action or add_filter. When an event or filter point runs, WordPress checks for hooked functions and runs them in order. Filters modify data and return it.