Created
April 9, 2022 09:15
-
-
Save qant/8ee09e9ab5b79fcfa3e32790f5e0ab85 to your computer and use it in GitHub Desktop.
Clear all cart sessions woocommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Using wp cli | |
wp wc tool run clear_sessions --user=1 | |
Useful related commands: https://github.com/woocommerce/woocommerce/wiki/WC-CLI-Overview#command-1 | |
wp wc tool run delete_orphaned_variations --user=1 | |
wp wc tool run clear_expired_transients --user=1 | |
wp wc tool run clear_transients --user=1 | |
--user=1 is an admin user with ID=1 in my case | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment