mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Add action to hook when WC order is created programmatically
This commit is contained in:
parent
64285c66ad
commit
2c6d84c32c
1 changed files with 2 additions and 0 deletions
|
@ -95,6 +95,8 @@ class WooCommerceOrderCreator {
|
||||||
$wc_order->calculate_totals();
|
$wc_order->calculate_totals();
|
||||||
$wc_order->save();
|
$wc_order->save();
|
||||||
|
|
||||||
|
do_action( 'woocommerce_paypal_payments_shipping_callback_woocommerce_order_created', $wc_order, $wc_cart );
|
||||||
|
|
||||||
return $wc_order;
|
return $wc_order;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue