Show "Order Again" for Processing Orders
Lets customers reorder from orders that are still processing, not only completed ones, using the "Order again" button in My Account.
Opens WPIDE on
Code
add_filter( 'woocommerce_valid_order_statuses_for_order_again', function ( $statuses ) {
$statuses[] = 'processing';
return array_unique( $statuses );
} );
Notes
Add more statuses to the list if needed, for example on-hold.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.