Automattic\WooCommerce\Internal\Admin\Settings\SettingsUIPages

ProductsSettingsPageAdapter::get_schema │ public │ WC 1.0

Build the canonical settings schema for a section.

Метод класса: ProductsSettingsPageAdapter{}

Хуков нет.

Возвращает

array.

Использование

$ProductsSettingsPageAdapter = new ProductsSettingsPageAdapter();
$ProductsSettingsPageAdapter->get_schema( $section ): array;
$section(строка) (обязательный)
Section id. Empty string means the default section.

Код ProductsSettingsPageAdapter::get_schema() WC 11.2.2

public function get_schema( string $section ): array {
	$schema = parent::get_schema( $section );

	$schema['shell']['title'] = __( 'Product settings', 'woocommerce' );

	return $schema;
}