Last active
February 3, 2017 08:11
-
-
Save rynaldos-zz/bc282c60f1982d5d7c917e0811d1cb7a to your computer and use it in GitHub Desktop.
[WooCommerce] Remove the "international_order" rules in anti-fraud plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'wc_anti_fraud_rules', 'wc_remove_antifraud_rules'); | |
| function wc_remove_antifraud_rules( $rules ) { | |
| foreach ( $rules as $key => $rule ) { | |
| if ( 'international_order' === $rule->get_id() ) { | |
| unset( $rules[$key] ); | |
| } | |
| } | |
| return $rules; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment