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 details of a particular Gutenberg block?

To get details of any given registered Gutenberg block, you must at least know its name. For example, the registered name of the Paragraph block is core/paragraph.

If you’re unsure about the registered name of a block, this post will help you to get details of all the blocks.

Once you have the name, use the following snippet:

wp.blocks.getBlockType( 'core/paragraph' );Code language: JavaScript (javascript)

That’s it!



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