Performance improvements for registering block variations with callbacks

Background
In WordPress 5.8, the API for registering block variations was introduced, bringing new capabilities to developers. However, it soon became evident that generating these variations had a non-trivial performance cost, particularly when used for template-part and navigation-link in WordPress 5.9 and post-terms in WordPress 6.1.

This post was originally published on Make Core by Karthik Thayyil.

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.