Automattic\WooCommerce\Blueprint\Schemas

JsonSchema::get_steppublicWC 1.0

Returns steps by name.

Method of the class: JsonSchema{}

No Hooks.

Returns

Array.

Usage

$JsonSchema = new JsonSchema();
$JsonSchema->get_step( $name );
$name(string) (required)
The name of the step.

JsonSchema::get_step() code WC 9.9.5

public function get_step( $name ) {
	$steps = array();
	foreach ( $this->schema->steps as $step ) {
		if ( $step->step === $name ) {
			$steps[] = $step;
		}
	}

	return $steps;
}