Replies: 0
Hello,
Which hooks should i call after an order was created?
i have tried this
add_action( ‘woocommerce_resume_order’, ‘customFunction’, 1, 1 );
add_action( ‘woocommerce_new_order’, ‘customFunction’, 1, 1 );
not result.
In general, i need to get an order data after creation.
So the method which complete an order is
wp-content/plugins/woocommerce/includes/api/legacy/v3/class-wc-api-orders.php
create_order
and it returns $this->get_order( $order->id )
and need this data after that.
Thanks.