Skip to content

Instantly share code, notes, and snippets.

@wpflippercode
Created September 12, 2017 05:32
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/b649fea5cdeb1da74ad8c61dd5466c84 to your computer and use it in GitHub Desktop.
Save wpflippercode/b649fea5cdeb1da74ad8c61dd5466c84 to your computer and use it in GitHub Desktop.
Hide Certain Markers on The Google Maps
add_filter('wpgmp_show_place','wpgmp_show_place',1,3 );
function wpgmp_show_place($show,$place,$map) {
// Here hide the marker with ID = 12665.
if($place['id'] == 12665) {
$show = FALSE;
}
return $show;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment