~/talk

Get hooked! Using the right WordPress actions

Talkat WordCamp US 2022 · 2022-09-09..09-11· [wordpress, developer-experience]
links:none on file
slides:none on file

Explains concrete hook usage: uses add_action/add_filter calls with priority numbers like 10 and 2 (and even negative priorities) and shows how wrong choices break sites. Demonstrates init to create admin user via wp_create_user, using admin_menu to hide menus, and why save_post causes infinite loops while using ACF’s save hook plus update_field avoids it. Builds a webhook sender on save_post and customizes Ajax Load More with alm_query_args to reorder featured posts via meta_query and array_unshift.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 3:17Why WordPress is powerful
  3. 4:21What are WordPress hooks
  4. 8:37Real-world action example
  5. 10:47Hacking accounts with init action
  6. 12:32Simplifying admin menus
  7. 15:01ACF mandatory fields with save post
  8. 19:37Web hooks with save post
  9. 21:42Q&A on hook priorities
  10. 28:40Understanding filters
  11. 34:18Form validation with filters
  12. 35:23Ajax Load More featured posts
  13. 42:11Actions vs filters recap
  14. 42:54Resources for WordPress hooks
  15. 43:19Q&A and closing
~/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.