Skip to content

Instantly share code, notes, and snippets.

@wpflippercode
Created September 14, 2017 06:15
Show Gist options
  • Save wpflippercode/cb28ef05d260b8fe5ed5062453fa33ac to your computer and use it in GitHub Desktop.
Save wpflippercode/cb28ef05d260b8fe5ed5062453fa33ac to your computer and use it in GitHub Desktop.
Modify Location Listing below Google Maps using Hook
add_filter('wpgmp_listing','wpgmp_listing',1,2 );
function wpgmp_listing($listing,$map) {
$listing['listing_placeholder'] = "<div class='listing-item'><h4>{marker_title}</h4><p>{marker_address}</p></div>";
return $listing;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment