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?

A simple 1-liner can do it for you:

wp.blocks.getBlockTypes();Code language: CSS (css)

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



Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

Powered by WordPress