[API] Fixed the action parameters in the methods to create and edit orders, closes #6845

This commit is contained in:
claudiosmweb 2014-11-28 10:22:22 -02:00
parent 8e929c1ee8
commit 80ea5420c3
1 changed files with 2 additions and 2 deletions

View File

@ -441,7 +441,7 @@ class WC_API_Orders extends WC_API_Resource {
wc_delete_shop_order_transients( $order->id );
do_action( 'woocommerce_api_create_order', $order->id, $this );
do_action( 'woocommerce_api_create_order', $order->id, $data );
return $this->get_order( $order->id );
@ -593,7 +593,7 @@ class WC_API_Orders extends WC_API_Resource {
wc_delete_shop_order_transients( $order->id );
do_action( 'woocommerce_api_edit_order', $order->id, $this );
do_action( 'woocommerce_api_edit_order', $order->id, $data );
return $this->get_order( $id );