'product_cat', 'hide_empty'=> false, 'exclude' => $ids ]); if (!empty($terms) && !is_wp_error($terms)) { foreach ($terms as $term) { if ($term->name === 'Uncategorized') { continue; } $sections[] = [ 'id' => $term->term_id, 'name' => $term->name, 'image' => Meta::forTerm($term->term_id)->get('image'), 'description' => $term->description, ]; } } return $sections; }