User Location Custom Info Window
-
Hi there,
We’re trying to add another image to the User Locations map info window. We were able to create a template of the map-shortcode.php file but we’re having trouble passing the necessary data to the data.userdata object. We’ve tried passing the data to the um_ajax_get_members_data filter but it’s not showing in the info window. I’ve included the code we have in our theme’s function.php file below.
add_filter( 'um_ajax_get_members_data', 'custom_um_get_survey_badge', 10, 3 ); function custom_um_get_survey_badge($data_array, $user_id, $directory_data) { $outputBadgeImg = // URL of image $data_array["um_badge"] = $outputBadgeImg; return $data_array; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘User Location Custom Info Window’ is closed to new replies.