~/talk

WordPress and hooks: understanding and using them

Talkat WordCamp Europe 2023 · 2023-06-08..06-10· [wordpress]
links:none on file
slides:none on file

Builds a small plugin and demo theme code that actually runs: uses add_action and add_filter to add an admin submenu, inject a body class, and register custom post types (sessions, speakers, attendees) with register_post_type and rewrite flushes, then refactors into a reusable register_custom_post_type factory action. Shows priority numbers (default ~10, can be lower or negative), uses remove_action to drop the WP version meta, enqueues scripts conditionally, filters comment text to mask bad words, and inspects hooks with a Simply Show Hooks fork — all code executes live.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:55Why hooks matter in WordPress
  3. 9:26Understanding WordPress hooks
  4. 12:00Actions vs filters explained
  5. 13:23Creating a custom post type
  6. 27:44Custom actions and flexibility
  7. 39:16Hook priorities and execution order
  8. 59:42Advanced hook arguments
  9. 1:02:12Useful WordPress hook functions
  10. 1:07:53Controlling client settings with hooks
  11. 1:17:00Moderating comments with filters
  12. 1:20:14Key takeaways and workflow tips
  13. 1:23:08Debugging hooks with plugins
  14. 1:27:33Practical hook examples
  15. 1:29:16Modifying main query with hooks
  16. 1:30:23Q&A and closing remarks
~/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.