• File: SettingsSectionUIPageProviderInterface.php
  • Full Path: /home/slvgwrnz/public_html/wp-content/plugins/woocommerce/src/Admin/Settings/SettingsSectionUIPageProviderInterface.php
  • Date Modified: 11/04/2026 12:40 PM
  • File size: 710 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
/**
 * Settings section UI page provider contract.
 */

declare( strict_types=1 );

namespace Automattic\WooCommerce\Admin\Settings;

defined( 'ABSPATH' ) || exit;

/**
 * Optional contract for registered sections that provide a native Settings UI page.
 *
 * @since 11.0.0
 */
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;
}