Skip to content

Instantly share code, notes, and snippets.

@trajche
Forked from ScottDeLuzio/mysql_query
Last active May 15, 2018 13:51
Show Gist options
  • Save trajche/84b23c4b832ca747d0145fd71e1523ce to your computer and use it in GitHub Desktop.
Save trajche/84b23c4b832ca747d0145fd71e1523ce to your computer and use it in GitHub Desktop.
MySQL query remove Woocommerce sessions & transients
DELETE FROM wp_options WHERE option_name LIKE '_wc_session_%' OR option_name LIKE '_wc_session_expires_%';
DELETE FROM wp_options WHERE option_name LIKE '_transient_wc_%' OR option_name LIKE '_transient_timeout_wc_%';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment