Automattic\WooCommerce\Internal\Admin\Settings\SettingsUIPages

ProductsSettingsPageAdapter{} │ final │ WC 10.9.0└─ LegacySettingsPageAdapter

Adapts the WooCommerce Products settings page for the settings UI renderer.

No Hooks.

Usage

$ProductsSettingsPageAdapter = new ProductsSettingsPageAdapter();
// use class methods

Methods

  1. public get_schema( string $section )

Changelog

Since 10.9.0 Introduced.

ProductsSettingsPageAdapter{} code WC 11.2.1

final class ProductsSettingsPageAdapter extends LegacySettingsPageAdapter {

	/**
	 * Build the canonical settings schema for a section.
	 *
	 * @param string $section Section id. Empty string means the default section.
	 * @return array
	 */
	public function get_schema( string $section ): array {
		$schema = parent::get_schema( $section );

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

		return $schema;
	}
}