diff --git a/includes/Admin/Product_Sets.php b/includes/Admin/Product_Sets.php index cca1b4ed3..008d31329 100644 --- a/includes/Admin/Product_Sets.php +++ b/includes/Admin/Product_Sets.php @@ -149,7 +149,12 @@ protected function get_field_label() { */ protected function get_field( $term_id = '' ) { $saved_items = get_term_meta( $term_id, $this->categories_field, true ); - $product_cats = get_terms( 'product_cat', array( 'hide_empty' => 0 ) ); + $product_cats = get_terms( + array( + 'taxonomy' => 'product_cat', + 'hide_empty' => false, + ) + ); ?>