Building a plugin for the block-based editor

As you know by now, there's a new content editor in WordPress that's been introduced in the 5.0 version of the platform. Essentially, it does away with the previous single editing window and instead, allows the user to work with individual content blocks, placing them one after another. When put together, all those blocks construct the final blog post. That's all fine and dandy for the user, but what does it mean for the plugin developer? A handful of things!

Firstly, building a plugin for a block-based editor is very different from building standard plugins like we've been doing in this chapter. While you can build those classic plugins with just a basic knowledge of PHP and HTML, building for ...

Get WordPress 5 Complete - Seventh Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.