woocommerce_restore_order_item_stock, $item, $new_stock, $old_stock, $order

woocommerce_restore_order_item_stock, $item, $new_stock, $old_stock, $order

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

do_action('woocommerce_restore_order_item_stock, $item, $new_stock, $old_stock, $order') is found 1 times:

  • /includes/wc-stock-functions.php line 404
    		 * @param int $new_stock  New stock.
    		 * @param int $old_stock Old stock.
    		 * @param WC_Order $order  Order data.
    		 */
    		do_action( 'woocommerce_restore_order_item_stock', $item, $new_stock, $old_stock, $order );
    	}
    
    	if ( $changes ) {
    		$order->add_order_note( __( 'Stock levels increased:', 'woocommerce' ) . ' ' . implode( ', ', $changes ), false, false, array( 'note_group' => OrderNoteGroup::PRODUCT_STOCK ) );
    	}