woocommerce_refund_restock_note
woocommerce_refund_restock_note
Appears in: woocommerce.6.4.1
Hook Type: filter
Displaying hooks found in version: woocommerce.6.4.1apply_filters('woocommerce_refund_restock_note') is found 1 times:
- /includes/wc-order-functions.php line 738
* @param bool|int|null $new_stock The new stock. * @param WC_Order $order The order the refund was done for. * @param bool|WC_Product $product The product the refund was done for. */ $restock_note = apply_filters( 'woocommerce_refund_restock_note', $restock_note, $old_stock, $new_stock, $order, $product ); $order->add_order_note( $restock_note ); $item->save(); do_action( 'woocommerce_restock_refunded_item', $product->get_id(), $old_stock, $new_stock, $order, $product );