Skip to content

Commit d54d69f

Browse files
committed
add blueprint.json
1 parent f52bdc5 commit d54d69f

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.wordpress-org/blueprint.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"landingPage": "/pos",
3+
"preferredVersions": {
4+
"php": "8.0",
5+
"wp": "latest"
6+
},
7+
"phpExtensionBundles": [
8+
"kitchen-sink"
9+
],
10+
"features": {
11+
"networking": true
12+
},
13+
"steps": [
14+
{
15+
"step": "login",
16+
"username": "admin",
17+
"password": "password"
18+
},
19+
{
20+
"step": "installPlugin",
21+
"pluginZipFile": {
22+
"resource": "wordpress.org/plugins",
23+
"slug": "woocommerce"
24+
},
25+
"options": {
26+
"activate": true
27+
}
28+
},
29+
{
30+
"step": "installPlugin",
31+
"pluginZipFile": {
32+
"resource": "wordpress.org/plugins",
33+
"slug": "woocommerce-pos"
34+
},
35+
"options": {
36+
"activate": true
37+
}
38+
},
39+
{
40+
"step": "setSiteOptions",
41+
"options": {
42+
"permalink_structure": "/%year%/%monthnum%/%day%/%postname%/",
43+
"woocommerce_calc_taxes": "yes"
44+
}
45+
},
46+
{
47+
"step": "wp-cli",
48+
"command": "wp wc product import wp-content/plugins/woocommerce/sample-data/sample_products.csv --user=admin"
49+
},
50+
{
51+
"step": "runPHP",
52+
"code": "<?php\nrequire_once 'wp-load.php';\nglobal $wpdb;\n$wpdb->insert(\n $wpdb->prefix . 'woocommerce_tax_rates',\n array(\n 'tax_rate_country' => 'US',\n 'tax_rate_state' => '',\n 'tax_rate' => '5.0000',\n 'tax_rate_name' => 'Sales Tax',\n 'tax_rate_priority' => '1',\n 'tax_rate_compound' => '0',\n 'tax_rate_shipping' => '1',\n 'tax_rate_order' => '0',\n 'tax_rate_class' => ''\n )\n);\n"
53+
}
54+
]
55+
}

0 commit comments

Comments
 (0)