Hey visitors! If you're a beginner in WordPress and WP-CLI development, then you should check out my dear friend Bhargav's Youtube channel! @BuntyWP

How to get a list of all registered Gutenberg blocks?

by Siddharth Thevaril

A simple 1-liner can do it for you:

wp.blocks.getBlockTypes();Code language: JavaScript (javascript)

That’s it.

When you’re on the post edit screen, you can run this command in the browser console.

wp.blocks.getBlockTypes() output in Chrome developer tools console

Subscribe to the Newsletter
Subscribe to get my latest content by email.

Leave a Reply