PageController::register_page( array $options )
Adds a JS powered page to wc-admin.
Description Description
Parameters Parameters
- $options
-
(Required) Array describing the page.
- 'id'
(string) Id to reference the page. - 'title'
(string) Page title. Used in menus and breadcrumbs. - 'parent'
(string|null) Parent ID. Null for new top level page. - 'path'
(string) Path for this page, full path in app context; ex /analytics/report - 'capability'
(string) Capability needed to access the page. - 'icon'
(string) Icon. Dashicons helper class, base64-encoded SVG, or 'none'. - 'position'
(int) Menu item position. - 'order'
(int) Navigation item order.
- 'id'
Source Source
File: packages/woocommerce-admin/src/PageController.php