php - What is the WooCommerce hook to for purchases details after checkout?
one text
Solution:
The hook that you are looking at is woocommerce_checkout_create_order_line_item, located in
The woocommerce_checkout_create_order_line_item action hook allows to adjust line item before save. It has 4 defined arguments:
$itemis theWC_Order_Item_Productobject$cart_item_keyis the related cart item key$valuesis the related cart item$orderis theWC_OrderObject
All StackOverFlow treads using .
Related: Get Order items and WC_Order_Item_Product in WooCommerce 3
Source