Automattic\WooCommerce\Internal\Admin\Settings

SettingsUIRequestContext::__constructprivateWC 1.0

Constructor.

Method of the class: SettingsUIRequestContext{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->__construct( $settings_page, $section );
$settings_page(WC_Settings_Page) (required)
Settings page.
$section(string) (required)
Current settings section. Empty string means the default section.

SettingsUIRequestContext::__construct() code WC 10.9.4

private function __construct( \WC_Settings_Page $settings_page, string $section ) {
	$this->settings_page    = $settings_page;
	$this->section          = $section;
	$this->settings_ui_page = self::resolve_settings_ui_page( $settings_page, $section );
}