Automattic\WooCommerce\Blueprint\Steps

SetSiteOptions::get_schemapublic staticWC 1.0

Get the schema for the step.

Method of the class: SetSiteOptions{}

No Hooks.

Returns

Array. schema for the step

Usage

$result = SetSiteOptions::get_schema( $version ): array;
$version(int)
schema version.
Default: 1

SetSiteOptions::get_schema() code WC 9.9.5

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' ),
	);
}