Menu::add_setting_item( array $args )

Adds a plugin setting 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. '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. ).


Top ↑

Source Source

File: packages/woocommerce-admin/src/Features/Navigation/Menu.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.