Automattic\WooCommerce\Blueprint\Steps
ActivateTheme::get_schema
Returns the schema for the JSON representation of this step.
Method of the class: ActivateTheme{}
No Hooks.
Returns
Array
. The schema array.
Usage
$result = ActivateTheme::get_schema( $version ): array;
- $version(int)
- The version of the schema to return.
Default: 1
ActivateTheme::get_schema() ActivateTheme::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() ), ), 'themeFolderName' => array( 'type' => 'string', ), ), 'required' => array( 'step', 'themeFolderName' ), ); }