Created
September 9, 2017 05:33
-
-
Save wpflippercode/462375a196c6d52a7ed3554b7b6b21be to your computer and use it in GitHub Desktop.
Show random image in the infowindow message on the google maps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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