PageController::connect_page( array $options )

Connect an existing page to wc-admin.


Description Description


Parameters Parameters

$options

(Required) Array describing the page.

  • 'id'
    (string) Id to reference the page.
  • 'title'
    (string|array) Page title. Used in menus and breadcrumbs.
  • 'parent'
    (string|null) Parent ID. Null for new top level page.
  • 'path'
    (string) Path for this page. E.g. admin.php?page=wc-settings&tab=checkout
  • 'capability'
    (string) Capability needed to access the page.
  • 'icon'
    (string) Icon. Dashicons helper class, base64-encoded SVG, or 'none'.
  • 'position'
    (int) Menu item position.
  • 'js_page'
    (boolean) If this is a JS-powered page.


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.