-
-
Save barrykooij/a0e96729840d5d7a5a98 to your computer and use it in GitHub Desktop.
WC AF Adding a country
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
<?php | |
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