Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View raewrites's full-sized avatar

Raelene Morey raewrites

View GitHub Profile
@raewrites
raewrites / create-expired-silver-membership
Last active July 4, 2018 08:22
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 July 4, 2018 08:18
Create unlimited memberships
wp wc memberships membership create --customer=1 --plan=100
@raewrites
raewrites / primary-command
Created July 4, 2018 08:18
WooCommerce Membership WP-CLI primary command
wp wc memberships
@raewrites
raewrites / generate-list-customers
Created July 4, 2018 08:17
Generate list of customers
wp wc customer list --user=1 --fields=id,email
@raewrites
raewrites / generate-list-orders
Created July 4, 2018 08:16
Generate list of orders
wp wc shop_order list --customer=1 --user=1 --fields=id,status
@raewrites
raewrites / generate-products-wp-cyclone
Created July 4, 2018 08:16
Generate products WP Cyclone
wp cyclone products <amount> [--type=<type>]
@raewrites
raewrites / create-external-products-woo
Created July 4, 2018 08:14
Create external products WooCommerce
--product_url="https://domain.com/product/test/" --button_text="Buy me"
@raewrites
raewrites / create-simple-products-woo
Last active October 1, 2018 03:48
Create Simple Products WooCommerce
wp wc product create -–name="Test Product" --type=simple --sku=WCCLITESTP --regular_price=20 –user
@raewrites
raewrites / clone-commands
Created July 4, 2018 08:11
Clone commands
cd ~/Sites
wp valet new test-site
cd test-site
wp presets apply --type=woo
@raewrites
raewrites / preset-wp-cli-commands
Created July 4, 2018 08:10
Preset WP-CLI commands
cd ~/Sites
wp valet new test-site
cd test-site
wp presets apply