Automattic\WooCommerce\Internal\Admin\Settings

SettingsUIRequestContext::get_schema │ public │ WC 1.0

Get the Settings UI schema for this context.

Метод класса: SettingsUIRequestContext{}

Хуков нет.

Возвращает

array|null.

Использование

$SettingsUIRequestContext = new SettingsUIRequestContext();
$SettingsUIRequestContext->get_schema(): ?array;

Код SettingsUIRequestContext::get_schema() WC 11.2.2

public function get_schema(): ?array {
	if ( $this->has_script_handles_failed() ) {
		$this->schema_resolved = true;

		return null;
	}

	if ( ! $this->schema_resolved ) {
		$this->resolve_schema();
	}

	return $this->schema;
}