~/talk

Demystifying Hooks, Actions and Filters

Talkat WordCamp Belfast 2018 · 2018-05-26..05-27· [wordpress, developer-experience]
links:none on file
slides:none on file

Hooks are everywhere in WordPress: the speaker claims WordPress 4.9.5 contains 867 action calls and 43,050 filters, and shows concrete techniques: use do_action/apply_filters calls, remove_action to disable behavior, and attach callbacks with priority numbers to reorder execution. Examples include reordering WooCommerce template parts (price, title) via actions instead of editing templates, returning modified content via filters, debugging filters with var_export/error logs, and packaging reusable code into a small “functional plugin” so changes survive theme updates.

AI-written summary · about

  1. 0:00Introduction to hooks and filters
  2. 1:51Actions vs filters explained
  3. 3:15Adding actions in WordPress
  4. 5:25Plugin loading and actions
  5. 7:51Core WordPress actions example
  6. 9:17Removing and reordering actions
  7. 11:06Modifying WooCommerce output
  8. 12:58How filters work metaphor
  9. 14:01Content filters in practice
  10. 15:46Advanced filter examples
  11. 16:50Debugging with filters
  12. 17:52Where to place your code
  13. 18:55Using functional plugins
  14. 20:00Q&A on filters and actions
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.