Automattic\WooCommerce\Blueprint\Steps

SetSiteOptions::get_schemapublic staticWC 1.0

Get the schema for the step.

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

Хуков нет.

Возвращает

Массив. schema for the step

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

$result = SetSiteOptions::get_schema( $version ): array;
$version(int)
schema version.
По умолчанию: 1

Код SetSiteOptions::get_schema() WC 10.0.2

public static function get_schema( int $version = 1 ): array {
	return array(
		'type'       => 'object',
		'properties' => array(
			'step' => array(
				'type' => 'string',
				'enum' => array( static::get_step_name() ),
			),

		),
		'required'   => array( 'step' ),
	);
}