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:
$item
is theWC_Order_Item_Product
object$cart_item_key
is the related cart item key$values
is the related cart item$order
is theWC_Order
Object
All StackOverFlow treads using .
Related: Get Order items and WC_Order_Item_Product in WooCommerce 3
Source