Created
March 9, 2018 15:17
-
-
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.
This file contains 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
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