Created
August 4, 2019 08:50
-
-
Save goiblas/4db4644a2a02990f1694e2589c08c398 to your computer and use it in GitHub Desktop.
Structure block (WordPress)
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
const { registerBlockType } = wp.blocks; | |
registerBlockType( 'block-restrict-content/block-restrict-content', { | |
title: 'Restrict Content', | |
icon: 'lock', | |
category: 'layout', | |
edit: ( ) => { | |
return ( | |
<div>Hola Editor!</div> | |
) | |
}, | |
save: ( ) => { | |
return ( | |
<div>Hola Frontend!</div> | |
) | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment