Find all the places where a block type is used

The question:

I have a plugin installed that adds additional custom block types that can be used in the Gutenberg editor (the plugin is called Block Lab). Now I want to remove that plugin. For that, I have to remove all the used instances of those blocks. Is there a way to find all the occurrences of a used block type?

The Solutions:

Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.

Method 1

I know that this is not welcome here, but my only answer is that I can refer you to the following plugin.

The plugin was released a few weeks ago and finds exactly the blocks used for your installation.

Exactly what you need.

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Comment