Skip to content

Commit

Permalink
Merge pull request #10910 from danielvonmitschke/release/2.5
Browse files Browse the repository at this point in the history
Added '$_product' argument to 'woocommerce_restock_refunded_item' hook
  • Loading branch information
mikejolley committed May 12, 2016
2 parents 919ae17 + ee95652 commit 295bd03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -2220,7 +2220,7 @@ public static function refund_line_items() {

$order->add_order_note( sprintf( __( 'Item #%s stock increased from %s to %s.', 'woocommerce' ), $order_item['product_id'], $old_stock, $new_quantity ) );

do_action( 'woocommerce_restock_refunded_item', $_product->id, $old_stock, $new_quantity, $order );
do_action( 'woocommerce_restock_refunded_item', $_product->id, $old_stock, $new_quantity, $order, $_product );
}
}
}
Expand Down

0 comments on commit 295bd03

Please sign in to comment.