Created
October 4, 2019 09:38
-
-
Save razwan/39f5b658d7be732c306a19629df89789 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
( function( blocks, element ) { | |
var el = element.createElement, | |
registerBlockType = blocks.registerBlockType; | |
registerBlockType( 'gutenberg-test/block', { | |
title: 'Gutenberg test block', | |
icon: 'megaphone', | |
category: 'widgets', | |
edit: function( props ) { | |
return el( 'div', {}, 'Gutenberg Test Block' ); | |
} | |
} ); | |
}( | |
window.wp.blocks, | |
window.wp.element, | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment