Automattic\WooCommerce\Admin\Settings
SettingsUIPageInterface::get_schema
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.
Метод класса: SettingsUIPageInterface{}
Хуков нет.
Возвращает
array.
Использование
$SettingsUIPageInterface = new SettingsUIPageInterface(); $SettingsUIPageInterface->get_schema( $section ): array;
- $section(строка) (обязательный)
- Section id. Empty string means the default section.
Список изменений
| С версии 10.9.0 | Введена. |
Код SettingsUIPageInterface::get_schema() SettingsUIPageInterface::get schema WC 11.2.2
public function get_schema( string $section ): array;