Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 512573

Hooks after order was created

$
0
0

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.


Viewing all articles
Browse latest Browse all 512573

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>