(Slightly) Advanced Topics In Block Development
summary
Shows how legacy shortcodes and meta boxes become Gutenberg blocks by reusing existing PHP render callbacks (example: Caldera Forms) and storing only attributes in block comments, so front-end output remains the same. Demonstrates modern tooling: webpack + Babel and NPM packages to bundle and share components, using WP data (Redux-like) to subscribe to post state, and the register_block_type API for PHP-rendered dynamic blocks that work in admin and on the front end.
AI-written summary · about
chapters (14)
- 0:00Introduction and motivation
- 2:17Shortcodes to blocks transition
- 5:52Modern JavaScript tooling in WordPress
- 10:31Reusing WordPress components
- 14:45Modular block development
- 16:09Building block edit interfaces
- 18:18Dynamic data in blocks
- 20:27Reusable Gutenberg components
- 25:08Saving blocks as HTML
- 27:13Dynamic vs static blocks
- 28:37PHP integration for blocks
- 31:49Extending and customizing blocks
- 35:18REST API and block data
- 37:28Q&A and conclusion
