Merge pull request #8559 from maxrice/patch-1

Introduce woocommerce_order_full_refunded_status filter
This commit is contained in:
Claudio Sanches 2015-07-11 00:34:14 -03:00
commit 589faffd89
1 changed files with 1 additions and 1 deletions

View File

@ -2211,7 +2211,7 @@ class WC_AJAX {
}
if ( $refund_amount == $max_refund ) {
$order->update_status( 'refunded' );
$order->update_status( apply_filters( 'woocommerce_order_fully_refunded_status', 'refunded', $order_id, $refund->id ) );
$response_data['status'] = 'fully_refunded';
}