Skip to content

Commit f980f99

Browse files
authored
Add an "Install plugin from a gist" example (#25)
Adds a Blueprint that installs a plugin from a PHP file stored in a GitHub gist. Referencing external URLs is technically against the contributing guidelines, but it is a useful example to provide so let's make an exception for this initial Blueprint.
1 parent b14b455 commit f980f99

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"meta": {
3+
"title": "Install plugin from a gist",
4+
"author": "zieladam",
5+
"description": "Install and activate a WordPress plugin from a .php file stored in a gist.",
6+
"categories": ["plugins"]
7+
},
8+
"landingPage": "/wp-admin/plugins.php",
9+
"preferredVersions": {
10+
"wp": "beta",
11+
"php": "8.0"
12+
},
13+
"steps": [
14+
{
15+
"step": "login"
16+
},
17+
{
18+
"step": "writeFile",
19+
"path": "/wordpress/wp-content/plugins/0-plugin.php",
20+
"data": {
21+
"resource": "url",
22+
"url": "https://gist.githubusercontent.com/ndiego/456b74b243d86c97cda89264c68cbdee/raw/ff00cf25e6eebe4f5a4eaecff10286f71e65340b/block-hooks-demo.php"
23+
}
24+
},
25+
{
26+
"step": "activatePlugin",
27+
"pluginName": "Block Hooks Demo",
28+
"pluginPath": "0-plugin.php"
29+
}
30+
]
31+
}

0 commit comments

Comments
 (0)