woocs_disable_backend_refund_calculation
This filter hook allows you to disable currency conversion calculations during WooCommerce refund processing in the admin panel.
Use Cases
1. Prevent Double Conversion Issues
If you’re using another plugin that handles refund conversions:
add_filter('woocs_disable_backend_refund_calculation', '__return_true');
Use Cases
1. Store-Specific Logic
Disable for certain store configurations:
add_filter('woocs_disable_backend_refund_calculation', function($disable) {
// Disable if using specific accounting plugin
if (class_exists('My_Custom_Accounting_Plugin')) {
return true;
}
return $disable;
});
2. Conditional Disable
Disable only for specific payment gateways:
add_filter('woocs_disable_backend_refund_calculation', function($disable) {
$order_id = $_REQUEST['order_id'] ?? 0;
if ($order_id) {
$order = wc_get_order($order_id);
// Disable for PayPal refunds
if ($order && $order->get_payment_method() === 'paypal') {
return true;
}
}
return $disable;
});
Notes
- Only affects backend/admin refund processing
- Does not impact frontend refund displays
- Useful when integrating with PDF invoices, smart coupons, or accounting systems that handle their own currency logic

