How-to Guides Edit
The new editor is highly flexible, like most of WordPress. You can build custom blocks, modify the editor’s appearance, add special plugins, and much more.
The editor is about blocks, and the main extensibility API is the Block API. It allows you to create your own static blocks, Dynamic Blocks ( rendered on the server ) and also blocks capable of saving data to Post Meta for more structured content.
If you want to learn more about block creation, see the Create a Block tutorial for the best place to start.
It is also possible to modify the behavior of existing blocks or even remove them completely using filters.
Learn more in the Block Filters section.
Extending the editor UI can be accomplished with the
registerPlugin API, allowing you to define all your plugin’s UI elements in one place.
You can also filter certain aspects of the editor; this is documented on the Editor Filters page.
By default, blocks provide their styles to enable basic support for blocks in themes without any change. Themes can add/override these styles, or rely on defaults.
There are some advanced block features which require opt-in support in the theme. See theme support.
Autocompleters within blocks may be extended and overridden. Learn more about the autocomplete filters.
Posts in the editor move through a couple of different stages between being stored in
post_content and appearing in the editor. Since the blocks themselves are data structures that live in memory it takes a parsing and serialization step to transform out from and into the stored format in the database.
Customizing the parser is an advanced topic that you can learn more about in the Extending the Parser section.