Skip to content

Instantly share code, notes, and snippets.

Avatar

Raelene Morey raewrites

View GitHub Profile
@raewrites
raewrites / create-expired-silver-membership
Last active Jul 4, 2018
Create expired silver membership
View create-expired-silver-membership
wp wc memberships membership create --customer=1 --plan="silver" --start_date="2016-01-01" --end_date="2016-06-30" --status="expired"
@raewrites
raewrites / create-unlimited-memberships
Created Jul 4, 2018
Create unlimited memberships
View create-unlimited-memberships
wp wc memberships membership create --customer=1 --plan=100
@raewrites
raewrites / primary-command
Created Jul 4, 2018
WooCommerce Membership WP-CLI primary command
View primary-command
wp wc memberships
@raewrites
raewrites / generate-list-customers
Created Jul 4, 2018
Generate list of customers
View generate-list-customers
wp wc customer list --user=1 --fields=id,email
@raewrites
raewrites / generate-list-orders
Created Jul 4, 2018
Generate list of orders
View generate-list-orders
wp wc shop_order list --customer=1 --user=1 --fields=id,status
@raewrites
raewrites / generate-products-wp-cyclone
Created Jul 4, 2018
Generate products WP Cyclone
View generate-products-wp-cyclone
wp cyclone products <amount> [--type=<type>]
@raewrites
raewrites / create-external-products-woo
Created Jul 4, 2018
Create external products WooCommerce
View create-external-products-woo
--product_url="https://domain.com/product/test/" --button_text="Buy me"
@raewrites
raewrites / create-simple-products-woo
Last active Oct 1, 2018
Create Simple Products WooCommerce
View create-simple-products-woo
wp wc product create -–name="Test Product" --type=simple --sku=WCCLITESTP --regular_price=20 –user
View clone-commands
cd ~/Sites
wp valet new test-site
cd test-site
wp presets apply --type=woo
View preset-wp-cli-commands
cd ~/Sites
wp valet new test-site
cd test-site
wp presets apply
You can’t perform that action at this time.