~/talk

Introduction To Block Development

Talkat WordCamp Pittsburgh 2018 · on Saturday, 2018-09-22· [wordpress, javascript]
slides:none on file

Shows how to register a block in PHP with register_block_type and link editor/front-end assets, then how to implement the block in JavaScript with registerBlockType using WP Element (createElement) and props.setAttributes to store editable values. Demonstrates static vs dynamic blocks, server‑side render callbacks for shortcodes, using WP components like TextControl, and scaffolding with WP‑CLI. Example plugin is on GitHub and the code runs in the Gutenberg plugin and WordPress 5.0 editor so the blocks render and edit as expected.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:09Speaker introduction
  3. 3:14What is Gutenberg
  4. 7:49Editing vs displaying content
  5. 11:42Static vs dynamic blocks
  6. 13:05Registering block types
  7. 16:17JavaScript register block type
  8. 19:49WP Element createElement
  9. 23:01Creating a basic block
  10. 24:07Block attributes
  11. 27:44WP Components
  12. 30:12Handling attribute changes
  13. 31:40Next steps for learning
  14. 33:26Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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.