php - access order details when admin creates new order woocommerce
551
This hook can be used to access order_details after checkout.
add_action('woocommerce_thankyou', array($this,'save_order_data'), 10);
public function save_order_data( $order_id) {
$order = wc_get_order( $order_id );
echo "<pre>Order id is".$order_id."</pre>";
}
But how could i access the same when order is created in back-end (admin side)? I couldn't find any hook ? Or is there any common hook that can be accessed even if order is placed from back-end or front end