Compare commits
2 Commits
18542739f7
...
334332a64f
Author | SHA1 | Date |
---|---|---|
Ray Elliott | 334332a64f | |
Ray Elliott | 3b24fcf36e |
10
src/index.js
10
src/index.js
|
@ -4,9 +4,13 @@ import './editor.scss';
|
|||
import { registerBlockType } from '@wordpress/blocks';
|
||||
import { __ } from '@wordpress/i18n';
|
||||
|
||||
const NAMESPACE = '';
|
||||
const SLUG = '';
|
||||
const BLOCK_TITLE= '';
|
||||
|
||||
registerBlockType( '<NAMESPACE>/<SLUG>', { // FIXME replace <NAMESPACE>, <SLUG>, <BLOCK TITLE>
|
||||
title: __( '<BLOCK TITLE>', '<SLUG>' ), // FIXME replace <BLOCK TITLE> ,<SLUG>
|
||||
|
||||
registerBlockType( `${NAMESPACE}/${SLUG}`, {
|
||||
title: __( BLOCK_TITLE, SLUG),
|
||||
|
||||
category: 'widgets',
|
||||
|
||||
|
@ -20,7 +24,7 @@ registerBlockType( '<NAMESPACE>/<SLUG>', { // FIXME replace <NAMESPACE>, <SLU
|
|||
type: 'string',
|
||||
source: 'text',
|
||||
selector: 'p'
|
||||
default: __('A default name', '<NAMESPACE>'), // FIXME replace <NAMESPACE>
|
||||
default: __('A default name', NAMESPACE),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue