Skip to content

Instantly share code, notes, and snippets.

@jessepearson
Last active February 14, 2024 11:15
Show Gist options
  • Save jessepearson/0a4a2da18bdeef20b80b50ff0e727c61 to your computer and use it in GitHub Desktop.
Save jessepearson/0a4a2da18bdeef20b80b50ff0e727c61 to your computer and use it in GitHub Desktop.

Revisions

  1. jessepearson renamed this gist Aug 16, 2021. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gistfile1.txt → functions.php
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    <?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 ) {
  2. jessepearson created this gist Aug 16, 2021.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    add_filter(
    'pre_option__wcpay_feature_customer_multi_currency',
    function ( $pre_option, $option, $default ) {
    return '0';
    },
    10,
    3
    );