Automattic\WooCommerce\Admin\Settings

SettingsUIPageInterface::get_schema │ public │ WC 10.9.0

Build the canonical settings schema for a section.

The shell.sectionNavigation key controls the sibling-section navigation rendered by the Settings UI shell, and only applies to drill-down pages (sections of the Payments tab). Set a custom array of id/label/href/ active entries to own the navigation, or omit the key to render none; drill-down pages default to header breadcrumbs instead. Top-level settings pages render the classic section links and ignore this key.

Method of the class: SettingsUIPageInterface{}

No Hooks.

Returns

array.

Usage

$SettingsUIPageInterface = new SettingsUIPageInterface();
$SettingsUIPageInterface->get_schema( $section ): array;
$section(string) (required)
Section id. Empty string means the default section.

Changelog

Since 10.9.0 Introduced.

SettingsUIPageInterface::get_schema() code WC 11.3.0

public function get_schema( string $section ): array;