What Version of Gutenberg Is in WordPress XYZ?
The WordPress Block Editor, which is a part of Core WordPress, is being built in the form of the Gutenberg (plugin) project, which again is split into various npm packages. Oftentimes, one would like to know “What version of Gutenberg is in a given version of WordPress?”. However, most of the time, the answer is […]
How WordPress 5.3 Might Break Your Editor Screen
This post comes in three parts. In the first, I present the problem I was facing when upgrading a site that was running on WordPress 5.2.x and no Gutenberg plugin. The second part is about the solution I found, which I think is no more than a workaround fix, actually. In the third part, I […]
Conditional Component Composition
In this post, I would like to share two related things that I have developed in the course of a recent client project: ConditionalComponent and composeIf. Conditional Components Sometimes there is the need to render one component or another, based on some condition or context. This is usually done by either an early return or […]
How to Register Custom Block Categories in JavaScript
As you might know, the WordPress Block Editor (aka Gutenberg) makes use of Block Categories to structure the various registered blocks. This can be seen, for example, in the Block Picker: Now, what we often want or have to do is to register a custom block category. And that’s possible. The official way to do […]