-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblueprint.json
45 lines (44 loc) · 1.19 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
{
"$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
},
"login": true,
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "literal:directory",
"name": "hellodashboard",
"files": {
"hellodashboard.php": {
"resource": "url",
"url": "https://raw.githubusercontent.com/bph/hellodashboard/main/hellodashboard.php"
}
}
},
"options": {
"activate": true
}
},
{
"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"
}