This commit is contained in:
Almira Krdzic
2018-10-21 02:13:57 +02:00
parent a61edbc984
commit 5cbdb482f2
12 changed files with 36 additions and 120 deletions

View File

@@ -47,7 +47,7 @@ class Wiaas_Product_Category {
foreach (self::$available_product_categories as $key => $available_product_category) {
if (! has_term_meta($key)) {
wp_insert_term($key, 'product_cat');
wp_update_term($key, 'product_cat');
}
}
}