结账后 WooCommerce 挂钩的购买详细信息是什么?
What is the WooCommerce hook to for purchases details after checkout?
有谁知道结帐时 WooCommerce 中获取所有购买详细信息的挂钩是什么?
到处都找不到。
您正在查看的挂钩是 woocommerce_checkout_create_order_line_item
,位于 WC_Checkout
method create_order_line_items()
woocommerce_checkout_create_order_line_item
操作挂钩允许在保存前调整行项目。它有 4 个定义的参数:
$item
是 WC_Order_Item_Product
对象
$cart_item_key
是相关的购物车项目关键字
$values
是相关的购物车商品
$order
是 WC_Order
对象
All Whosebug treads using woocommerce_checkout_create_order_line_item
action hook.
相关:
有谁知道结帐时 WooCommerce 中获取所有购买详细信息的挂钩是什么?
到处都找不到。
您正在查看的挂钩是 woocommerce_checkout_create_order_line_item
,位于 WC_Checkout
method create_order_line_items()
woocommerce_checkout_create_order_line_item
操作挂钩允许在保存前调整行项目。它有 4 个定义的参数:
$item
是WC_Order_Item_Product
对象$cart_item_key
是相关的购物车项目关键字$values
是相关的购物车商品$order
是WC_Order
对象
All Whosebug treads using woocommerce_checkout_create_order_line_item
action hook.
相关: