Skip to content

Commit

Permalink
Docs/SlotFills: Small update for consistency (#20767)
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderBart authored Mar 10, 2020
1 parent 8f337a8 commit f9ded2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions docs/designers-developers/developers/slotfills/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => (
<PluginPostStatusInfo>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => (
<PluginBlockSettingsMenuItem
Expand Down

0 comments on commit f9ded2d

Please sign in to comment.