-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 10 initial Blueprints #1
Comments
I'd be happy to add the Block Museum as a Blueprint too: https://block-museum.com/ It's a community project and I bet it would be cool to see it behind the scenes with a blueprint. |
What I'd like to see for a blueprint + XML import is a good demo of content (i.e., not "test" content) with the Twenty Twenty-Four theme. Something like 10 posts with media and various blocks in a more realistic context. If we had something like this, it'd be easier to "sell" other themers on seriously considering using Playground. This blueprint proposal would be great for:
Basically, shoot for making the de facto standard for creating a theme demo.
I'm not 100% sure what you're asking. |
More ideas from @annezazu
|
Install and activate a WordPress plugin from a {
"landingPage": "/wp-admin/plugins.php",
"preferredVersions": {
"wp": "beta",
"php": "8.0"
},
"steps": [
{
"step": "login"
},
{
"step": "writeFile",
"path": "/wordpress/wp-content/plugins/0-plugin.php",
"data": {
"resource": "url",
"url": "https://gist.githubusercontent.com/ndiego/456b74b243d86c97cda89264c68cbdee/raw/ff00cf25e6eebe4f5a4eaecff10286f71e65340b/block-hooks-demo.php"
}
},
{
"step": "activatePlugin",
"pluginName": "Block Hooks Demo",
"pluginPath": "0-plugin.php"
}
]
} |
Log in as a user with {
"landingPage": "/wp-admin/",
"steps": [
{
"step": "runPHP",
"code": "<?php require '/wordpress/wp-load.php'; $user_id = wp_create_user('myuser', 'mypass', 'myuser@localhost'); (new WP_User($user_id))->set_role('editor');"
},
{
"step": "login",
"username": "myuser",
"password": "mypass"
}
]
} |
Oh definitely need a way to provide test content. For example, in one of my plugins, I would want to generate a bunch of users. This technically looks doable via a runPHP step, but it's also kinda a pain for as much content as I need. Updating to add that apparently you can use wp-cli commands to generate content OR you can import XML like in this example |
Example from the preview button that imports content from a repo and lands on the edit screen of a given Post ID.
|
We are considering printing some cards for WCEU that would include QR codes to preconfigured sites. That partially overlaps with this task, so it would be nice to reuse some of the blueprints. We don't want to showcase the technical capabilities of Playground but get a wow effect. Please share any ideas that you might have in this issue WordPress/wordpress-playground#1200. |
Offering up my blueprint in case y'all find it useful: |
Block Hooks example: Add a Like button - https://github.com/ockham/like-button/tree/trunk Could be modified for a Cart interface in WooCommerce if someone wants to get fancy. |
Create a WordPress post from a Markdown file using @adamziel - See where I'm going with this one? 😉 |
Quite a few Blueprint examples Here's a long list I came up with last night of Blueprint ideas! |
Proof of concepts for BlueprintsSupport for 10 Initial Blueprints for the Community Gallery Here are a list of ideas of what you could conceivably do with Blueprints. Blueprint IdeasDesign & DevelopmentCreate a new custom block
Create a new block theme
Create a new block plugin
Create a block library
Work with patterns
Hooks, Actions, and Filters (oh my!)
Create content
Working with contentWorking with the datastore
Testing, DebuggingTesting
Debugging
Demos, Sharing, Collaboration, Teaching
Deep LinkingStylebook - customize theme styles and jump to the stylebook
Maintenance, Optimization, ConfigurationStart with a "completely fresh" WordPress install
Speculative Loading - preload assets to make the site faster Optimization - run Performance Lab on a site Using WordPress configuration variables -
Blueprint utilitiesAutomatically add CORS support if needed
Automatic networking detection
Automatically add blueprint keywords (categories)
|
We now have 10 Blueprints in the Gallery – thank you all so much for your amazing contributions and ideas! 🎉 🎉 🎉 Let's close this issue and continue the conversation in Tracking: Wanted Blueprints where I gathered a structured list of things that came up in this discussion. |
A few places they could be sourced from:
Let's add those Blueprints via separate Pull Requests to serve as examples for the publishing guidelines.
Let's include additional static assets with at least one of them to demonstrate how to ship and use those via raw.githubusercontent.com.
Open questions
cc @bph @justintadlock
The text was updated successfully, but these errors were encountered: