Do not call unnecessary create_tables() -- tables should be ready by the time we call the method

This commit is contained in:
moon 2022-04-13 06:43:06 -07:00
parent 2f21b3592e
commit b37421fb98
1 changed files with 0 additions and 2 deletions

View File

@ -62,8 +62,6 @@ class CategoryLookup {
public function regenerate() {
global $wpdb;
// Delete existing data and ensure schema is current.
\WC_Install::create_tables();
$wpdb->query( "TRUNCATE TABLE $wpdb->wc_category_lookup" );
$terms = get_terms(