WordPress 7.0 introduced a new feature: PHP block registration exclusively via PHP. Registration, metadata, assets, and rendering—all in one place.

Developers can now create simple blocks using PHP alone. This is intended for blocks that only need to be rendered on the server side and aren’t meant to be particularly interactive. This API is designed to help developers avoid unnecessary complexity and thus promote the widespread use of blocks, especially in classic themes.

The talk uses a specific example to demonstrate how this can be implemented.


Geef feedback

Log in op je WordPress.org account, of voeg je naam & e-mail toe om feedback te geven.

Waardeer deze sessie
Max 5.000 karakters.
0/5000
Max 5.000 karakters.
0/5000
Max 5.000 karakters.
0/5000

Sessie details en downloads

om

in track: