Skip to content

Commit

Permalink
Update blueprint.json
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed Mar 20, 2024
1 parent b96dbfe commit b0b6c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .wordpress-org/blueprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
{
"step": "runPHP",
"code": "<?php\nrequire_once(ABSPATH . 'wp-load.php');\n\nif (class_exists('WC_Product_CSV_Importer')) {\n $import_file = ABSPATH . 'wp-content/plugins/woocommerce/sample-data/sample_products.csv';\n $args = [\n 'delimiter' => ',', // CSV delimiter\n 'start_pos' => 0, // Starting position\n 'mapping' => [], // Column mapping, leave empty for automatic mapping\n 'parse' => true, // Parse file\n ];\n\n $importer = new WC_Product_CSV_Importer($import_file, $args);\n $results = $importer->import();\n}\n"
"code": "<?php\nrequire_once 'wp-load.php';\n\nif (class_exists('WC_Product_CSV_Importer')) {\n $import_file = ABSPATH . 'wp-content/plugins/woocommerce/sample-data/sample_products.csv';\n $args = [\n 'delimiter' => ',', // CSV delimiter\n 'start_pos' => 0, // Starting position\n 'mapping' => [], // Column mapping, leave empty for automatic mapping\n 'parse' => true, // Parse file\n ];\n\n $importer = new WC_Product_CSV_Importer($import_file, $args);\n $results = $importer->import();\n}\n"
},
{
"step": "runPHP",
Expand Down

0 comments on commit b0b6c7e

Please sign in to comment.