Avoid firing woocommerce_order_fully_refunded twice

This commit is contained in:
Mike Jolley 2015-08-13 16:35:52 +01:00
parent a52619c344
commit 630c14124c
1 changed files with 0 additions and 2 deletions

View File

@ -804,7 +804,5 @@ function wc_order_fully_refunded( $order_id ) {
) );
wc_delete_shop_order_transients( $order_id );
do_action( 'woocommerce_order_fully_refunded', $order_id, $refund->id );
}
add_action( 'woocommerce_order_status_refunded', 'wc_order_fully_refunded' );