谢谢,但我从其他渠道得到了答案。我的答案是
$args = array(
//\'number\'=> $number,
//\'orderby\'=> $orderby,
//\'order\'=> $order,
\'hide_empty\'=> false,
//\'include\'=> $ids
);
$product_categories = get_terms( \'product_cat\', $args );
foreach($product_categories as $catval)
{$catval->name;
$link = esc_url( get_term_link( $catval, $catval->taxonomy ) );
// get the thumbnail id user the term_id
$thumbnail_id = get_woocommerce_term_meta( $catval->term_id, \'thumbnail_id\', true );
// get the image URL
$image = wp_get_attachment_url( $thumbnail_id );