Automattic\WooCommerce\Internal\Admin\Settings\SettingsUIPages

ProductsSettingsPageAdapter{} │ final │ WC 10.9.0└─ LegacySettingsPageAdapter

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

Хуков нет.

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

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

Методы

  1. public get_schema( string $section )

Список изменений

С версии 10.9.0 Введена.

Код ProductsSettingsPageAdapter{} WC 11.2.2

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;
	}
}