Skip to content

Instantly share code, notes, and snippets.

@gilles66
Last active April 2, 2025 07:03
Show Gist options
  • Save gilles66/d88af01b3efcbdea3d610e846a2c2cca to your computer and use it in GitHub Desktop.
Save gilles66/d88af01b3efcbdea3d610e846a2c2cca to your computer and use it in GitHub Desktop.
test blueprint.json
Le fichier blueprint.json sert à créer un playground du plugin get-options dans le but que les utilisateurs puissent tester le plugin sans avoir à l'installer.
Pour l'instant cela ne fonctionne pas.
L'url de ce playground est composée de
-- https://playground.wordpress.net/?blueprint=
-- puis l'url du fichier blueprint.json
Soit : https://playground.wordpress.net/?blueprint=https://gist.githubusercontent.com/gilles66/d88af01b3efcbdea3d610e846a2c2cca/raw/857abe6f9d92f0dc5652f4d0db85003d0effa3f9/blueprint.json
Voici de l'aide
https://wordpress.github.io/wordpress-playground/blueprints/data-format/
{
"landingPage": "/wp-admin/",
"preferredVersions": {
"php": "7.4",
"wp": "6.5"
},
"features": {
"networking": true
},
"steps": [
{
"step": "login",
"username": "admin",
"password": "password"
}
]
}
{
"version": 1,
"landingPage": "/wp-admin/plugins.php",
"steps": [
{
"step": "installWordPress"
},
{
"step": "installPlugin",
"pluginZipUrl": "https://downloads.wordpress.org/plugin/get-options.latest-stable.zip",
"activate": true
},
{
"step": "goToUrl",
"url": "/wp-admin/tools.php?page=all_options"
}
],
"features": {
"networking": true
}
}
@gilles66
Copy link
Author

gilles66 commented Apr 2, 2025

Ajout de

    "features": {
        "networking": true
    }

pour que playground puisse accéder au réseau et télécharger le plugin get-options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment