Automattic\WooCommerce\Blueprint\Schemas
JsonSchema::get_step
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() JsonSchema::get step code WC 10.8.1
public function get_step( $name ) {
$steps = array();
foreach ( $this->schema->steps as $step ) {
if ( $step->step === $name ) {
$steps[] = $step;
}
}
return $steps;
}