Automattic\WooCommerce\Blueprint\Steps
SetSiteOptions::get_schema
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() SetSiteOptions::get schema code WC 10.7.0
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' ),
);
}