Added '$_product' argument to 'woocommerce_restock_refunded_item' hook

currently the hook is only using $_product->id but it might be useful
not to only know the product but also the explicit variation that was
refunded.
This commit is contained in:
danielvonmitschke 2016-07-01 12:53:08 +02:00
parent abce9cc8b6
commit 857647cc06
1 changed files with 1 additions and 1 deletions

View File

@ -2246,7 +2246,7 @@ class WC_AJAX {
$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 );
}
}
}