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.

Sessie details en downloads

om

in track: