A smooth generator for Grow extension data using WP-CLI.
Grow Smooth Generator requires Composer and WP-CLI to function. The WooCommerce Smooth Generator must be installed and activated.
- Copy this plugin into your site's plugins folder
- From command line CD into the plugin folder
- Run
composer install
and wait for the installation to complete - Run
wp plugin activate grow-smooth-generator
to activate the plugin - You now have access to a couple of new WP-CLI commands under the main
wp wc generate
command.
Generate conversions based on the number of conversions parameter (for the current date).
wp wc generate aw-conversions <nr of conversions> --workflow=<workflow ID>
Generate conversions with random dates between --date-start
and the current date.
wp wc generate aw-conversions <nr of conversions> --workflow=<workflow ID> --date-start=2020-04-01
Generate conversions with random dates between --date-start
and --date-end
.
wp wc generate aw-conversions <nr of conversions> --workflow=<workflow ID> --date-start=2020-04-01 --date-end=2020-04-24
Generate email tracking based on the number parameter.
wp wc generate aw-email-tracking <nr of tracking> --workflow=<workflow ID>
Generate email tracking with random dates between --date-start
and the current date.
wp wc generate aw-email-tracking <nr of tracking> --workflow=<workflow ID> --date-start=2020-04-01
Generate email tracking with random dates between --date-start
and --date-end
.
wp wc generate aw-email-tracking <nr of tracking> --workflow=<workflow ID> --date-start=2020-04-01 --date-end=2020-04-24