Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Shortcut to make registerBlockType easily available when creating WordPress blocks.
// Get registerBlockType() from wp.blocks in the global scope
const { registerBlockType } = window.wp.blocks;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment