Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Show random image in the infowindow message on the google maps
add_filter('wpgmp_featured_image', 'wpgmp_featured_image',1,3 );
function wpgmp_featured_image($image,$post_id,$map_id) {
// Modify img tag containing featured image.
$image = '<img src="http://lorempixel.com/400/200/" />';
return $image;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.