Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woogists/608abc9a04da42fc4740142541a879ca to your computer and use it in GitHub Desktop.
Save woogists/608abc9a04da42fc4740142541a879ca to your computer and use it in GitHub Desktop.
[WooCommerce Anti Fraud] You can add or remove risk countries by using the ‘wc_af_rule_countries’ filter.
function wc_af_example_rule_countries( $countries ) {
$countries[] = 'NL'; // Adding The Netherlands as a risk country
return $countries;
}
add_filter( 'wc_af_rule_countries', 'wc_af_example_rule_countries' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment