WordPress 7.2 replaces the Options and View menus in both the post and site editors with the Menu component from @wordpress/ui. The change brings improved keyboard navigation, explicit checkbox and link items, and menu styling aligned with the WordPress Design System.
Most plugins can continue using PluginMoreMenuItem, PluginSidebarMoreMenuItem and PluginPreviewMenuItem. Labels belong in children, with properties such as icon, onClick, href and disabled defining an item’s behaviour. Sidebar items also use target to identify the relevant panel. In the Options menu, plugin items now appear under a Panels submenu rather than a separate Plugins group.
The menu’s markup has changed, so selectors based on older @wordpress/components class names may no longer work. End-to-end tests should locate items by accessible role and name, opening Options and then Panels before selecting a plugin item. The undocumented as prop is also deprecated on the three plugin menu components: WordPress 7.2 ignores it and issues a warning. The editor renders these items itself because separately bundled copies of @wordpress/ui have distinct React contexts. Direct users of ActionItem from @wordpress/interface can still use as through a compatibility adapter, but custom components must forward props and refs and may require styling changes.
Author of the original text: George Mamadashvili (Make WordPress)