diff --git a/docs/designers-developers/developers/slotfills/README.md b/docs/designers-developers/developers/slotfills/README.md index 9df1769c19ba09..2b241ffb979ca7 100644 --- a/docs/designers-developers/developers/slotfills/README.md +++ b/docs/designers-developers/developers/slotfills/README.md @@ -14,13 +14,11 @@ In order to access the SlotFills, we need to do four things: 3. Define a method to render our changes. Our changes/additions will be wrapped in the SlotFill component we imported. 4. Register the plugin. - - Here is an example using the `PluginPostStatusInfo` slotFill: ```js -const { registerPlugin } = wp.plugins; -const { PluginPostStatusInfo } = wp.editPost; +import { registerPlugin } from '@wordpress/plugins'; +import { PluginPostStatusInfo } from '@wordpress/edit-post'; const PluginPostStatusInfoTest = () => ( diff --git a/docs/designers-developers/developers/slotfills/plugin-block-settings-menu-item.md b/docs/designers-developers/developers/slotfills/plugin-block-settings-menu-item.md index 666384c53af35d..f96df587dc6243 100644 --- a/docs/designers-developers/developers/slotfills/plugin-block-settings-menu-item.md +++ b/docs/designers-developers/developers/slotfills/plugin-block-settings-menu-item.md @@ -6,8 +6,8 @@ This will either appear in the controls for each block or at the Top Toolbar dep ## Example ```js -const { registerPlugin } = wp.plugins; -const { PluginBlockSettingsMenuItem } = wp.editPost; +import { registerPlugin } from '@wordpress/plugins'; +import { PluginBlockSettingsMenuItem } from '@wordpress/edit-post'; const PluginBlockSettingsMenuGroupTest = () => (