How to wrap all titles generated by Gutenberg “Heading” block with tag
This can be done using the blocks.getSaveElement filter as shown in the example below. I would STRONGLY caution that this has the potential for bad times. Core blocks are static blocks. This means that the output is saved to the database. If you want to remove these spans, you’ll need to basically redo all of … Read more