woocommerce_order_refunded

woocommerce_order_refunded

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_order_refunded') is found 1 times:

  • /includes/wc-order-functions.php line 690
    		$order->set_date_modified( time() );
    		$order->save();
    
    		do_action( 'woocommerce_refund_created', $refund->get_id(), $args );
    		do_action( 'woocommerce_order_refunded', $order->get_id(), $refund->get_id() );
    
    	} catch ( Exception $e ) {
    		if ( isset( $refund ) && is_a( $refund, 'WC_Order_Refund' ) ) {
    			$refund->delete( true );
    		}
    		return new WP_Error( 'error', $e->getMessage() );