When Order status in Woocommerce is changed to Processing the payment status is set to paid:
But order was accidentally set to processing and shouldn't have gotten the status paid. Now when we set status to pending again it doesn't remove the text:
Order #1234 details
Payment via Purchase Order. Paid on September 17, 2018 @ 9:18 am
Any idea how to change this text to what is was before status was changed?
Use the following code that will reset (empty) paid date, so it will remove the paid message.
So each time that an order that have a status as "processing", "completed" or "On Hold" is passed back to "Pending" status, the paid date will be emtied.
The code:
Code goes in function.php file of your active child theme (or active theme). Tested and works.
Related: Set back date paid on paid order statuses change in WooCommerce