Skip to content

Instantly share code, notes, and snippets.

@wpflippercode
Last active November 13, 2017 13:13
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 wpflippercode/9a33446e4b4963634e3bafab8b240f39 to your computer and use it in GitHub Desktop.
Save wpflippercode/9a33446e4b4963634e3bafab8b240f39 to your computer and use it in GitHub Desktop.
Fix marker display issue in conflicting countries having same zipcodes
add_filter('wdap_exclude_countries','excluding_countries');
function excluding_countries($countries) {
/*Return array of country codes which you want to exclude to display marker. Some countries have same zipcodes due to which markers are displayed on both countries and this represent product delivery area, however you need to display it in only one country as your deliver in one country only */
return $countries;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment