Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Gist for my article: WordPress: Adding custom svg icons to your Gutenberg blocks/plugin.
import Sidebar from './components/sidebar.js';
import icons from './icons/icons.js'
const { registerPlugin } = wp.plugins;
registerPlugin("myplugin", {
icon: icons.github, // The Plugin icon
render: Sidebar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.