Skip to content

Instantly share code, notes, and snippets.

@rynaldos-zz
Last active February 3, 2017 08:11
Show Gist options
  • Save rynaldos-zz/bc282c60f1982d5d7c917e0811d1cb7a to your computer and use it in GitHub Desktop.
Save rynaldos-zz/bc282c60f1982d5d7c917e0811d1cb7a to your computer and use it in GitHub Desktop.
[WooCommerce] Remove the "international_order" rules in anti-fraud plugin
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