handle bundle product prices editor and prices summary
This commit is contained in:
@@ -56,7 +56,9 @@ class Wiaas_Package_Status {
|
||||
$statuses = [self::AVAILABLE, self::INVALID_MARGIN, self::INVALID_TEMPLATE];
|
||||
|
||||
foreach ($statuses as $status) {
|
||||
wp_insert_term($status, 'package_status');
|
||||
if (! has_term($status)) {
|
||||
wp_insert_term($status, 'package_status');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user