How to change Google Map Type

Here we discuss Ultimate Member ("UM") and any problems with it only. Support is provided up to version 1.0.72
Forum rules
We can provide customization or technical support at the lowest cost for your Ultimate Member WordPress site. Register at:
ucp.php?mode=register and create a new topic down below with any request you might have.

Attention: we are not the developers of this plugin. For support questions go to the Free UM support forum at:
https://wordpress.org/support/plugin/ultimate-member/ .

How to change Google Map Type

Postby admin » Wed Aug 09, 2017 8:47 am

Go to ~root /wp-content/plugins/ultimate-member/core/um-filters-fields.php.
Code: Select all

   ***   @outputs a google map


   add_filter('um_profile_field_filter_hook__googlemap', 'um_profile_field_filter_hook__googlemap', 99, 2);

   function um_profile_field_filter_hook__googlemap( $value, $data ) {

      $value = '<div class="um-googlemap">

               <iframe width="600" height="450" frameborder="0" style="border:0" src="https://maps.google.com/maps?q=' . urlencode( $value ) . '&output=embed"></iframe>


      return $value;


Replace the value for:
Code: Select all
<div class="um-googlemap">

               <iframe width="600" height="450" frameborder="0" style="border:0" src="https://maps.google.com/maps/place?&t=k&z=18&q=' . urlencode( $value ) . '&output=embed"></iframe>



This code is hidden: 

To view this code please make a small donation or login to see it!
The AVNW Support Team

If there is a false accusation made against you, then remove this fake report.

Shopping for a new website? See our design deals.

How much is your website worth? Get a free estimate.

And, if our post has provided you with great information, there are a few ways you can show your appreciation:
  1. Like us on Facebook
  2. Post a review.- Posting a good review about this site could help us provide improved support.

Thank You!
User avatar
Site Admin
Posts: 495
Joined: Sun Jan 12, 2014 11:18 pm
Location: New York City

Return to Ultimate Member

Who is online

Users browsing this forum: No registered users and 1 guest