# Untick "Restock Refunded Items" by Default

> Leaves the "Restock refunded items" box unticked when you refund an order, for shops where returned goods are usually damaged or not resold.

- Type: PHP
- Runs: Run everywhere
- Category: [WooCommerce](https://wpide.com/library/category/woocommerce/)
- Requires: WooCommerce
- Tags: woocommerce, refunds, stock, admin
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/woo-no-restock-on-refund/

## Code

```php
add_filter( 'woocommerce_restock_refunded_items', '__return_false' );
```

## Notes

You can still tick the box for an individual refund when the items do go back on the shelf.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Untick "Restock Refunded Items" by Default" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
