-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblueprint.json
46 lines (46 loc) · 1.27 KB
/
blueprint.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"meta": {
"title": "Add a Dashboard message and a guide",
"description": "Blueprint that adds a plugin to create a dashboard and upload some content linked from the Dashboard",
"author": "bph",
"categories": ["Content", "dashboard"]
},
"features": {
"networking": true
},
"steps": [
{
"step": "login"
},
{
"step": "mkdir",
"path": "/wordpress/wp-content/plugins/hellodashboard"
},
{
"step": "writeFile",
"path": "/wordpress/wp-content/plugins/hellodashboard/hellodashboard.php",
"data": {
"resource": "url",
"url": "https://raw.githubusercontent.com/bph/hellodashboard/main/hellodashboard.php"
}
},
{
"step": "activatePlugin",
"pluginPath": "hellodashboard/hellodashboard.php"
},
{
"step": "importWxr",
"file": {
"resource": "url",
"url": "https://raw.githubusercontent.com/bph/hellodashboard/main/playgroundguide.xml"
}
},
{
"step": "writeFile",
"path": "/wordpress/wp-content/mu-plugins/rewrite.php",
"data": "<?php add_action( 'after_setup_theme', function() { global $wp_rewrite; $wp_rewrite->set_permalink_structure('/%postname%/'); $wp_rewrite->flush_rules(); } );"
}
],
"landingPage": "/wp-admin/?welcome=0"
}