Repository navigation
Expand file tree
/
Copy pathblueprint-multisite.json
More file actions
79 lines (79 loc) · 2.29 KB
/
Copy pathblueprint-multisite.json
File metadata and controls
79 lines (79 loc) · 2.29 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"preferredVersions": {
"php": "8.3",
"wp": "latest"
},
"landingPage": "/wp-admin/edit.php",
"login": true,
"steps": [
{
"step": "defineWpConfigConsts",
"consts": {
"WP_DEBUG": true
}
},
{
"step": "enableMultisite"
},
{
"step": "installPlugin",
"pluginData": {
"resource": "url",
"url": "https://raw.githubusercontent.com/WordPress/presence-api/preview-main/presence-api.zip"
},
"options": {
"activate": false
}
},
{
"step": "installPlugin",
"pluginData": {
"resource": "url",
"url": "https://raw.githubusercontent.com/WordPress/presence-api/preview-main/presence-debugger.zip"
},
"options": {
"activate": false
}
},
{
"step": "writeFile",
"path": "/wordpress/wp-content/plugins/presence-api/demo-seeder.php",
"data": {
"resource": "url",
"url": "https://raw.githubusercontent.com/WordPress/presence-api/main/tests/e2e/demo-seeder.php"
}
},
{
"step": "writeFile",
"path": "/wordpress/wp-content/mu-plugins/screen-stale-demo-helper.php",
"data": {
"resource": "url",
"url": "https://raw.githubusercontent.com/WordPress/presence-api/main/tests/e2e/screen-stale-demo-helper.php"
}
},
{
"step": "wp-cli",
"command": "wp plugin activate presence-api --network"
},
{
"step": "wp-cli",
"command": "wp plugin activate presence-debugger --network"
},
{
"step": "wp-cli",
"command": "wp site create --slug=engineering --title=Engineering"
},
{
"step": "wp-cli",
"command": "wp site create --slug=marketing --title=Marketing"
},
{
"step": "wp-cli",
"command": "wp site create --slug=design --title=Design"
},
{
"step": "wp-cli",
"command": "wp eval 'require \"/wordpress/wp-content/plugins/presence-api/demo-seeder.php\"; $counts = array( 40, 25, 20, 15 ); $offset = 0; foreach ( get_sites( array( \"number\" => 100, \"orderby\" => \"id\" ) ) as $i => $site ) { $count = isset( $counts[ $i ] ) ? $counts[ $i ] : 1; $blog_id = (int) $site->blog_id; switch_to_blog( $blog_id ); update_option( \"avatar_default\", \"identicon\" ); foreach ( wp_presence_demo_seed( $count, $offset ) as $user_id ) { add_user_to_blog( $blog_id, $user_id, \"editor\" ); } restore_current_blog(); $offset += $count; } update_user_meta( 1, \"show_welcome_panel\", 0 );'"
}
]
}