Menu::add_plugin_item( array $args )
Adds a plugin item.
Description Description
Parameters Parameters
- $args
-
(Required) Array containing the necessary arguments. $args = array( 'id' => (string) The unique ID of the menu item. Required. 'title' => (string) Title of the menu item. Required. 'parent' => (string) Parent menu item ID. 'capability' => (string) Capability to view this menu item. 'url' => (string) URL or callback to be used. Required. 'migrate' => (bool) Whether or not to hide the item in the wp admin menu. 'order' => (int) Menu item order. 'matchExpression' => (string) A regular expression used to identify if the menu item is active. ).
Source Source
File: packages/woocommerce-admin/src/Features/Navigation/Menu.php