Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gist for my tutorial: Building a Gutenberg sidebar plugin Part 3: Registering with the block editor. https://vanaf1979.nl/building-a-gutenberg-sidebar-plugin-part-3-registering-with-the-block-editor/
/**
* Sidebar component voor the gutenberg editor.
*/
class Sidebar extends React.Component {
...
render() {
return (
<Fragment>
<PluginSidebarMoreMenuItem target="metatags-sidebar" icon='editor-customchar'>
{__("MetaTags", "metatags")}
</PluginSidebarMoreMenuItem>
</Fragment>
)
}
}
export default Sidebar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment