~/talk

Let’s Build a Custom Block in 15 Minutes

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

Claims a working custom block built in under 15 minutes using create-block, Node/npm and a local WordPress install. Workflow: scaffold a dynamic block, copy the two Hello Dolly PHP functions, convert the render to return a string, paste that into the block template, run npm start to compile, add block supports (alignment, color, spacing, typography), swap the icon and description, then test in the editor and frontend. Result: a dynamic Hello Dolly block that renders a random lyric — it works after a quick refresh.

AI-written summary · about

  1. 0:00Introduction
  2. 0:37Why build custom blocks?
  3. 1:22Defining the project
  4. 2:05Scaffolding the block
  5. 4:18Integrating functionality
  6. 6:33Modifying the render function
  7. 7:22Templating and compilation
  8. 9:29Refining the edit function
  9. 10:40Adding block supports
  10. 12:08Testing the final block
  11. 14:09Resources and conclusion
~/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.