Skip to content

Instantly share code, notes, and snippets.

@wickywills
Created February 7, 2020 14:51
Show Gist options
  • Save wickywills/b61b50cd09dbdbd0c234ffa1197e6a97 to your computer and use it in GitHub Desktop.
Save wickywills/b61b50cd09dbdbd0c234ffa1197e6a97 to your computer and use it in GitHub Desktop.
Navigate to web root and run:
```
wp post delete $(wp post list --post_type='shop_order' --post_status=wc-pending --format=ids --force) --force
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment