Tweak the input value for date_modified

Turns out the value used here doesn't matter, because it will always
update to the current time. It just needs to have a changed prop in
order for the save to execute.
This commit is contained in:
Corey McKrill 2023-03-06 15:05:41 -08:00
parent ceeb5a8f4a
commit 0c9bd08ed6
No known key found for this signature in database
GPG Key ID: 84BBFE669C4D97B8
1 changed files with 1 additions and 1 deletions

View File

@ -660,7 +660,7 @@ function wc_create_refund( $args = array() ) {
}
}
$order->set_date_modified( $refund->get_date_created() );
$order->set_date_modified( time() );
$order->save();
do_action( 'woocommerce_refund_created', $refund->get_id(), $args );