Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 607 Bytes

plugin-more-menu-item.md

File metadata and controls

26 lines (18 loc) · 607 Bytes

PluginMoreMenuItem

This slot will add a new item to the More Tools & Options section.

Example

const { registerPlugin } = wp.plugins;
const { PluginMoreMenuItem,} = wp.editPost;

const MyButtonMoreMenuItemTest = () => (
	<PluginMoreMenuItem
		icon="smiley"
		onClick={ () => { alert( 'Button Clicked' ) } }
	>
		More Menu Item
	</PluginMoreMenuItem>
);

registerPlugin( 'more-menu-item-test', { render: MyButtonMoreMenuItemTest } );

Location

Location