📅  最后修改于: 2022-03-11 14:54:34.508000             🧑  作者: Mango
foreach ( $items as $item ) {
$product_name = $item->get_name();
$product_id = $item->get_product_id();
$product_variation_id = $item->get_variation_id();
}