Skip to content

Instantly share code, notes, and snippets.

@vanaf1979
Last active September 22, 2019 14:00
Show Gist options
  • Save vanaf1979/493a299ca56cebff015ef9ab9aa39485 to your computer and use it in GitHub Desktop.
Save vanaf1979/493a299ca56cebff015ef9ab9aa39485 to your computer and use it in GitHub Desktop.
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/
/**
* WordPress dependencies.
*/
const { registerPlugin } = wp.plugins;
/**
* Local dependencies.
*/
import Sidebar from './components/sidebar.js';
/**
* Register the MetaTags plugin.
*/
registerPlugin("metatags", {
icon: 'editor-customchar',
render: Sidebar
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment