Skip to content

Instantly share code, notes, and snippets.

@rcstr
Forked from jessepearson/functions.php
Last active September 20, 2021 20:19
Show Gist options
  • Save rcstr/03a1b77791bf369f180a7693744d28a2 to your computer and use it in GitHub Desktop.
Save rcstr/03a1b77791bf369f180a7693744d28a2 to your computer and use it in GitHub Desktop.
This is a filter to disable Multi-Currency in WooCommerce Payments. (gives higher priority 💯 to function)
<?php // Do not copy this line.
// This is a filter to disable Multi-Currency in WooCommerce Payments.
add_filter(
'pre_option__wcpay_feature_customer_multi_currency',
function ( $pre_option, $option, $default ) {
return '0';
},
100,
3
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment