How to Add extra option to Image Block Settings?
This can be done using block filters. First, you’ll need to filter block attributes for the image block to be able to save the new items: const { addFilter } = wp.hooks; function filterAttributes( settings, name ) { if ( ‘core/image’ === name && settings.attributes ) { settings.attributes.description = { type: ‘string’, default: ” }; … Read more