The steps property of a Blueprint is an array of steps to run. For example this Blueprint logs the user in as an admin:
{
"steps": [
{
"step": "login",
"username": "admin",
"password": "password"
}
]
}
Each step is an object that contains a step property that specifies the type of step to run. The rest of the properties depend on the type of step. Learn and try each step type below.
The following step-related topics are addressed on dedicated pages included in this section:
- Resources References allow you use external files in Blueprints.
-
Some steps have a shorthand version. Check the Shorthands section for more information about them.
-
For each step listed below, you’ll find both a “Blueprint API” and a “Function API”. Refer to the API Consistency page for further details.
The WordPress Playground Step Library tool provides a visual interface to drag or click the steps to create a blueprint for WordPress Playground. You can also create your own steps!
({
value: getStepAPI(name).stepId,
id: name,
level: 2
}))
} />
{BlueprintSteps.map((name) => (
<>
</>
))}