Every autoloaded option is fetched and unserialised on every request, and a plugin storing a large structure in one turns a cache into a fixed cost. Tracking the…
The object cache API is always available and, without a drop-in, discards everything at the end of the request. Within a request it is still worth having —…
A dynamic block rendering in PHP frequently needs a value from theme.json, and reading the file directly misses the merge with core and user styles. The merge is…
The component renders a dynamic block by asking the server, which means the editor preview is a network round trip for every attribute change. Without debouncing, typing a…
A variation is a different starting state for the same block; a style is a class name applied to it. They appear in different places in the interface.…
Custom authentication for the REST API hooks a filter that runs before most of WordPress is loaded, which constrains what is available inside it. Returning early when a…
6.1 lets block.json name a PHP file for rendering, which removes the callback from the registration call. The file receives $attributes, $content and $block as variables rather than…