Is it possible to bulk migrate all deprecated instances of a gutenberg block?

I wrote a plugin which defines a gutenberg block. After using this block in posts, I’ve changed its definition inside my plugin, so now I have a “deprecated” entry in the block configuration containing “migrate” function. I can open and save each post containing this block and the migration is applied.

Is it possible to do this for all posts automatically? If yes then how? (in order to get rid of the “deprecated” code in block configuration)

0

Leave a Comment