Skip to content

Instantly share code, notes, and snippets.

@barrykooij
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save barrykooij/a0e96729840d5d7a5a98 to your computer and use it in GitHub Desktop.
Save barrykooij/a0e96729840d5d7a5a98 to your computer and use it in GitHub Desktop.
WC AF Adding a country
<?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