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?

by Siddharth Thevaril

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!

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

Leave a Reply