-
Notifications
You must be signed in to change notification settings - Fork 8
Home
Junaid Bhura edited this page Feb 1, 2019
·
2 revisions
Download and install this plugin. That's it! 🎉
Make sure to add gumponents
as a dependency when you're enqueueing your editor assets:
wp_enqueue_script(
'your-script',
plugins_url( 'path/to/blocks.js', __FILE__ ),
array(
...
'gumponents', // That!
...
),
);
Gumponents are available as a global gumponents
object to use in your JavaScript, for example:
const { PostRelationshipControl } = gumponents.components;