Skip to content

Instantly share code, notes, and snippets.

@vanaf1979
Last active October 27, 2019 14:07
Show Gist options
  • Save vanaf1979/a4f0ac1d15ea87c3477bd5dfff980ea8 to your computer and use it in GitHub Desktop.
Save vanaf1979/a4f0ac1d15ea87c3477bd5dfff980ea8 to your computer and use it in GitHub Desktop.
wp.domReady( () => {
wp.blocks.registerBlockStyle( 'core/heading', [
{
name: 'default',
label: 'Default',
isDefault: true,
},
{
name: 'uppercase-heading',
label: 'Uppercase',
}
]);
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment