Skip to content

Commit 0c82d28

Browse files
committed
added a landingpage value + step to skip Woo setup
1 parent 03b93b0 commit 0c82d28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

blueprints/woo-shipping/blueprint.json

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"categories": ["woocommerce", "shipping", "flat_rate"]
88
},
99
"plugins":["woocommerce"],
10+
"landingPage": "/wp-admin/edit.php?post_type=product",
1011
"steps": [
1112
{
1213
"step": "importWxr",
@@ -31,6 +32,10 @@
3132
"step": "activatePlugin",
3233
"pluginName": "woo-shipping-method",
3334
"pluginPath": "woo-shipping-method/woo-shipping-method.php"
35+
},
36+
{
37+
"step": "runPHP",
38+
"code": "<?php include 'wordpress/wp-load.php'; delete_transient( '_wc_activation_redirect' ); wp_insert_post(array( 'import_id' => 5, 'post_title' => 'Sample Product', 'post_content' => '<!-- wp:paragraph --><p>Sample product description</p><!-- /wp:paragraph -->','post_status' => 'publish','post_type' => 'product','post_author' => 1, 'meta_input' => array('_sku' => 'WEBTOFFEE-FEED-ITEM', '_regular_price' => 25.00, '_sale_price' => 22.00, '_price' => 22.00, '_wt_feed_brand' => 'WebToffee', '_wt_feed_gtin' => 'WEBTOFFEE123', '_wt_feed_mpn' => 'WebToffee123', '_wt_feed_color' => 'Red', '_wt_feed_gender' => 'Male' ) ) );"
3439
}
3540
],
3641
"siteOptions": {

0 commit comments

Comments
 (0)