Created
December 28, 2017 09:07
-
-
Save zgordon/5ef1b8de2fc258b93bb2881e67d8731e to your computer and use it in GitHub Desktop.
The registerBlockType() function takes two parameters: name and settings.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get registerBlockType() from wp.blocks in the global scope | |
const { registerBlockType } = window.wp.blocks; | |
// Two parameters, name and settings | |
registerBlockType( 'example-plugin/example-custom-block', {} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment