Extending Gutenberg - We’re not in PHP anymore
summary
Gutenberg extension uses a PHP plugin to enqueue JavaScript and register new blocks via registerBlockType, with edit/save React-style functions or a PHP render callback for dynamic server-rendered output. Live demos add async autocompleters, editor chrome panels, and a sidebar plugin that inserts blocks with insertBlock. Extensions also hook into the editor through filters such as the block edit filter, use the built-in Redux-style datastore, and run in the live app — all demos work in the editor as shown.
AI-written summary · about
