Skip to content

Instantly share code, notes, and snippets.

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="" />';
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.