Automattic\WooCommerce\Internal\Admin\Settings\SettingsUIPages
ProductsSettingsPageAdapter{}└─ LegacySettingsPageAdapter
Adapts the WooCommerce Products settings page for the settings UI renderer.
Хуков нет.
Использование
$ProductsSettingsPageAdapter = new ProductsSettingsPageAdapter(); // use class methods
Методы
Список изменений
| С версии 10.9.0 | Введена. |
Код ProductsSettingsPageAdapter{} 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;
}
}