~/talk

Learn how to create Gutenberg blocks from scratch

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

Workshop shows creating a Gutenberg block from scratch using node & npm, LocalWP and the official @wordpress/create-block scaffold, runs with npm start and webpack, and exposes the plugin files: src, build, block.json and index.js. It implements block attributes, RichText inputs, InspectorControls, alignment and color support via block.json, shares state between editor and front with useBlockProps, and then converts the block to a render.php dynamic block using register_post_meta; builds run live and a small typo is fixed onstage.

AI-written summary · about

  1. 0:00Introduction to Gutenberg blocks
  2. 2:09Installing prerequisites
  3. 11:19Setting up WordPress environment
  4. 13:24Creating a block with wp-scripts
  5. 18:36Anatomy of a block plugin
  6. 28:33Editing the block JSON file
  7. 32:38Adding attributes to the block
  8. 36:15Using React components in the editor
  9. 49:07Adding Inspector Controls
  10. 1:04:34Block supports and styling
  11. 1:18:02Conditional rendering in blocks
  12. 1:30:16Dynamic blocks with PHP
  13. 1:46:32Custom fields and post meta
  14. 1:57:32Summary and Q&A
~/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.