Custom metaboxes are used extensively in WordPress for layout purposes as well as data structure. However, they don’t necessarily — in fact they rarely — save to the meta
key’s array of objects when they’re added to the WordPress REST API and can’t be used by Gutenberg’s built in meta
attribute.
How can we use Gutenberg with them? Should we look at how they work now and replicate that functionality exactly? It’s necessary to keep in mind that this data will be edited in the context of the editor where the user has no knowledge — and cannot be expected to need any knowledge — of how the data is stored or managed.
Continue reading “Using Gutenberg blocks in place of custom metaboxes in WordPress”