Skip to content

Commit

Permalink
Add a new blueprint for getting an empty installation of WordPress (u…
Browse files Browse the repository at this point in the history
…sing resetData) (#54)

This blueprint runs an SQL query to delete default posts from the
default theme.
It also loads custom content with custom IDs for each post. 
The technique used in this blueprint is a nice workaround for [this
issue](WordPress/block-development-examples#111).
  • Loading branch information
juanmaguitar authored Aug 1, 2024
1 parent abe830a commit f340878
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions blueprints/reset-data-and-import-content/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"meta": {
"title": "Reset data",
"description": "It gets a WordPress installation without any content",
"author": "juanmaguitar",
"categories": ["reset"]
},
"landingPage": "/wp-admin",
"steps": [
{
"step": "login",
"username": "admin",
"password": "password"
},
{
"step": "resetData"
}
]
}

0 comments on commit f340878

Please sign in to comment.