Automattic\WooCommerce\Admin\Settings

SettingsSectionUIPageProviderInterface{}interfaceWC 11.0.0

Optional contract for registered sections that provide a native Settings UI page.

No Hooks.

Usage

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

Methods

  1. public get_settings_ui_page( \WC_Settings_Page $parent_page )

Changelog

Since 11.0.0 Introduced.

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