~/talk

Basics of PHP: Action and Filter Hooks

Talkat WordCamp Miami 2018 · 2018-03-16..03-18· [php, wordpress]
slides:none on file

Lightning fast walkthrough of WordPress hooks showing concrete results: a custom login logo, a quick Add to Cart button implemented in 7 lines of code, and a product-listing tweak that uses the woocommerce_after_shop_loop_item_title hook via add_action so the button loads without a page refresh. Code lives in a child theme functions.php, requires FTP or local dev to recover from errors, and demonstrates that actions add functionality while filters modify existing output.

AI-written summary · about

  1. 0:00Introduction to hooks
  2. 1:08About the speaker
  3. 2:11Hooks in WooCommerce
  4. 3:16Customizing WordPress login
  5. 5:00Practical hook examples
  6. 7:09Types of hooks
  7. 8:11How to use hooks
  8. 11:00Checklist before using hooks
  9. 13:28Call for more hooks
  10. 14:10Contact and resources
  11. 15:06Q&A session
~/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.