Automattic\WooCommerce\Internal\Admin\Settings\SettingsUIPages
ProductsSettingsPageAdapter{}└─ LegacySettingsPageAdapter
Adapts the WooCommerce Products settings page for the settings UI renderer.
No Hooks.
Usage
$ProductsSettingsPageAdapter = new ProductsSettingsPageAdapter(); // use class methods
Methods
Changelog
| Since 10.9.0 | Introduced. |
ProductsSettingsPageAdapter{} 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;
}
}