woocommerce_refund_restock_note

woocommerce_refund_restock_note

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_refund_restock_note') is found 1 times:

  • /includes/wc-order-functions.php line 801
    		 * @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 );