Add WordPress Playground blueprint#1282
Conversation
There was a problem hiding this comment.
Thanks for getting this working, looks really good!
Two things I'd suggest:
- When the Playground is ready, it just lands you on the homepage of the main site. I think landing you on one of the Distributor settings screens would be a better demo experience, maybe
/wp-admin/admin.php?page=pull? Or maybe just a single post in the admin, giving a user quick access to try pushing content? - Would be great to add a badge to the readme file that links to the Playground. Can see an example of that here
|
Hello @dkotter! Please let me know if you want me to move the bluprint.json file to another folder: from the classifai PR I see it has been loaded in the .github folder. |
|
If additional content is desired, perhaps using starter content might help there? |
|
Hello @jeffpaul! I have tested the following setups:
The nearest solution I can provide with a small footprint on the blueprint is like the last one, but instead of using the dashboard as a landing page, I can land you on the homepage of the second website. This is an example if you want to test - "landingPage": "/wp-admin/admin.php?page=pull",
+ "landingPage": "/test",
.
.
.
+ {
+ "step": "wp-cli",
+ "command": "wp post create --post_type=post --post_title='A sample post to be distributed'"
+ }Every other setup I thought of requires writing a plugin to insert content into the second website, while the blueprint can land you in the dashboard of the first website. Is it worth having such a portion of code inside the blueprint? Also, this idea is untested, so I don't even know if it will work 🤷♀️ |
|
@dottxado This looks good to me and I agree that we can look to make additional changes to the content in the future if we decide that's worth the effort. For now this at least gets a demo environment working |
|
Cool, thank you very much for having me contribute, @dkotter! 😄 |
|
Sharing some notes here on leveraging Starter Content to get some example posts/pages onto the multisite, perhaps even some that show posts already in a push and pull state as examples for folks (maybe going even further with skipped in the pull state).
|

Description of the Change
I added the WordPress Playground blueprint that permits to spin up a WordPress instance and demonstrates the Distributor plugin in action. The blueprint ships an environment with the following:
Closes #1266
developbranch (which is where this PR is pointing to). I don't know if you prefer the example URL to target the stable branch, so please let me know!How to test the Change
You can test the blueprint by following this link
Changelog Entry
Credits
Props @dottxado
Checklist: