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.


Top ↑

Source Source

File: packages/woocommerce-admin/src/PageController.php


			


Top ↑

User Contributed Notes User Contributed Notes

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