Automattic\WooCommerce\Admin\Settings
SettingsSectionUIPageProviderInterface{}
Optional contract for registered sections that provide a native Settings UI page.
No Hooks.
Usage
$SettingsSectionUIPageProviderInterface = new SettingsSectionUIPageProviderInterface(); // use class methods
Methods
Changelog
| Since 11.0.0 | Introduced. |
SettingsSectionUIPageProviderInterface{} SettingsSectionUIPageProviderInterface{} code WC 11.0.1
interface SettingsSectionUIPageProviderInterface {
/**
* Get the native Settings UI page for this registered section.
*
* Return null to use the default registered section adapter.
*
* @since 11.0.0
*
* @param \WC_Settings_Page $parent_page Parent settings page.
* @return SettingsUIPageInterface|null
*/
public function get_settings_ui_page( \WC_Settings_Page $parent_page ): ?SettingsUIPageInterface;
}