Custom Fields in Gutenberg
Gutenberg/block editor is using javascript and REST API, so to make this custom field editable via block editor, we need to register this field and make it available in WordPress REST API: register_post_meta( 'post', '_my_data', [ 'show_in_rest' => true, 'single'…