wp-includes » List all WordPress Blocks in the Editor

List all WordPress Blocks in the Editor

WordPress.com has a list of all the blocks that are available inside the Gutenberg editor, and for self-hosted WordPress websites you can run the following command in the browser console when using the editor to get a list of all available blocks.

wp.blocks.getBlockTypes()

The output:

image 5 - List all WordPress Blocks in the Editor
See also  How to send AJAX requests in a WordPress theme or plugins

Was this post helpful?

Leave a Comment

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.

Recommended