Developer-Friendly Plugin
This maps plugin for WordPress is developer-friendly. Website admins can control its various aspects using hooks.
Below is a list of hooks provided by this plugin.
wpgmp_location_criteria
You can assign locations to the map using programming. You need not to assign locations manually to the map from Add Map page. This hooks is very userful if you want to assign different locations on different pages.
add_filter('wpgmp_location_criteria','wpgmp_location_criteria',1,2);
function wpgmp_location_criteria($condition,$map) {
// modify condition here according to your requirement.
return $condition;
}
Code Snippets
wpgmp_infowindow_message
You can display different info window message for the posts according to page using this hook.
add_filter('wpgmp_infowindow_message', 'wpgmp_infowindow_message',1,2 ); function wpgmp_infowindow_message($message,$map) { //Modify Infowindow message for location. return $message; }
Code Snippets
wpgmp_listing_html
You can customize listing html displaying below google maps easily using this hook.
add_filter('wpgmp_listing_html', 'wpgmp_listing_html',1,2 ); function wpgmp_listing_html($listing_html,$map) { //Modify $listing_html according to your needs. return $listing_html; }
Code Snippets
wpgmp_post_args
You can query posts to show posts on the google maps. You can use arguments mentioned here
add_filter('wpgmp_post_args', 'wpgmp_post_args',1,2 ); function wpgmp_post_args($args,$map) { //Modify arguments return $args; }
Code Snippets
wpgmp_taxonomy_separator
Modify separator used for multiple categories and tags using this hook. Default separator is comma (,).
add_filter('wpgmp_taxonomy_separator', 'wpgmp_taxonomy_separator',1,2 ); function wpgmp_taxonomy_separator($separator,$map) { //Modify separator here return $separator; }
Code Snippets
wpgmp_featured_image_size
You can easily customize featured image size using this hook.Default size is thumbnail.
add_filter('wpgmp_featured_image_size', 'wpgmp_featured_image_size',1,3 ); function wpgmp_featured_image_size($size,$post,$map) { /* You can specify image size in following formats //$size = 'thumbnail'; //$size = 'medium'; //$size = array(50,50); */ $size = 'medium'; return $size; }
Code Snippets
wpgmp_featured_image
You can modify img element containing featured image using this hook.
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. return $image; }
Code Snippets
wpgmp_post_placeholder
You can modify post’s data before display in the info window using this hook.
add_filter('wpgmp_post_placeholder', 'wpgmp_post_placeholder',1,3 ); function wpgmp_post_placeholder($placeholders,$post,$map) { // Posts Details $placeholders['post_excerpt'] = get_the_content($post->ID); return $placeholders; }
Code Snippets
wpgmp_marker_source
This hook is very useful if you want to load markers from external sources like database, API, JSON or xml files.
add_filter('wpgmp_marker_source','wpgmp_marker_source',1,2); function wpgmp_marker_source($markers,$map_id) { $markers = array(); $marker = array(); $marker['category'] = 'marker category'; // (optional) This is category name. $marker['id'] = '15987'; // (optional) Assign a numeric value to the marker. Make sure it's should be unique. $marker['title'] =" Marker Title"; // Assign a title to the marker. $marker['address'] =" Marker Address"; // Assign an address to the marker. $marker['message'] ="Info Window message"; // Show Infowindow message on marker click. $marker['latitude'] ="30.210994"; // Assign latitude to the marker. $marker['longitude'] ="74.94547450000005"; // Assign longitude to the marker. $marker['extra_fields'] = array('fax' => 123456, 'email' => 'hello@flippercode.com'); // You can add any number of extra fields and use proper placeholder to display in the info window or listing. $marker['icon'] ="https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png"; // Assign an icon to the marker. $markers[] = $marker; return $markers; // Return array of markers. }
Code Snippets
wpgmp_render_shortcode
You can allow rendering shortcode using this hook.
add_filter('wpgmp_render_shortcode','wpgmp_render_shortcode',1,2 ); function wpgmp_render_shortcode($bool,$map) { //Default is TRUE. return $bool; }
Code Snippets
wpgmp_show_place
You can show/hide a certain marker using this hook.
add_filter('wpgmp_show_place','wpgmp_show_place',1,3 ); function wpgmp_show_place($show,$place,$map) { //Default is TRUE return $show; }
Code Snippets
wpgmp_markers
This hook is very useful to process through all markers before displaying on the google maps.
add_filter('wpgmp_markers','wpgmp_markers',1,3 ); function wpgmp_markers($places,$map) { // $places is array of markers. return $places; }
Code Snippets
wpgmp_sorting
This hook allows to add custom sorting options to sort location listing below the map. You can sort by location fields, extra fields added to the location or custom fields of the post.
add_filter('wpgmp_sorting','wpgmp_sorting',1,2); function wpgmp_sorting($sorting,$map) { //Append your new sorting option here. return $sorting; }
Code Snippets
wpgmp_listing_render_shortcode
You can allow rendering shortcode on the listing item using this hook.
add_filter('wpgmp_listing_render_shortcode','wpgmp_listing_render_shortcode',1,2 ); function wpgmp_listing_render_shortcode($bool,$map) { //Default is TRUE. return $bool; }
wpgmp_listing
This hook allows to control all settings of listing below the google maps. You can easily show or hide listing controls and modify listing html using this hook.
add_filter('wpgmp_listing','wpgmp_listing',1,2 ); function wpgmp_listing($listing,$map) { //Modify listing settings using hook. return $listing; }
Code Snippets
wpgmp_before_map
You can insert custom html before google maps container.
add_filter('wpgmp_before_map','wpgmp_before_map',1,2 ); function wpgmp_before_map($custom_html,$map) { return $custom_html; }
Code Snippets
wpgmp_after_map
You can insert custom html after google maps container.
add_filter('wpgmp_after_map','wpgmp_after_map',1,2 ); function wpgmp_after_map($custom_html,$map) { return $custom_html; }
Code Snippets
wpgmp_container_class
You can add custom css class to output container, consists of maps, filters and listing, to style it as you want.
add_filter('wpgmp_container_class','wpgmp_container_class',1,2 ); function wpgmp_container_class($class,$map) { return $css; }
wpgmp_map_class
You can add custom css class to google maps element to style it as you want.
add_filter('wpgmp_map_class','wpgmp_map_class',1,2 ); function wpgmp_map_class($class,$map) { return $css; }
Code Snippets
wpgmp_before_container
You can insert custom html before shortcode output div.
add_filter('wpgmp_before_container','wpgmp_before_container',1,2 ); function wpgmp_before_container($custom_html,$map) { return $custom_html; }
wpgmp_after_container
You can insert custom html after shortcode output div.
add_filter('wpgmp_after_container','wpgmp_after_container',1,2 ); function wpgmp_after_container($custom_html,$map) { return $custom_html; }
wpgmp_map_output
This hook is very useful to change position of map and listing.
add_filter('wpgmp_map_output','wpgmp_map_output',1,4 ); function wpgmp_map_output($output,$map_div,$listing_div,$map_id) { // You can use $map_div and $listing_div to place them according to your need. return $output; }
Code Snippets
wpgmp_update_default_placeholder
add_filter('wpgmp_update_default_placeholder','wpgmp_update_default_placeholder',10,1); function wpgmp_update_default_placeholder($placeholder_values){ $placeholder_values['search_placeholder'] = esc_html__('Enter school / university name here...','your-theme-textdomain-here'); return $placeholder_values; }
Client Testimonials
"The Maps Pro plugin is the most complete and easiest to use when you need to include the google maps in your websites. I've used the plugin for a long time and I'm very happy with it. Not only its quality is the best, but its support (specially, for non-programmers like me) is wonderful. Thank you Flippercode for an excellent product with great support."
LulioSr
"This plugin is helpful in so many ways I bought this for one of my client. I can literally can use it for many other purpose though. The documentation and usage of the plugin is so clean that you will never get lost. Moreover the support team is so quick with response and resolving issue they even helped me to add a feature in the plugin within 30 mins. I am looking for further features and updates. Thank you very much flippercode. :D"
bhands
"This plugin is BY FAR the best map plugin you can buy anywhere on the internet today. You have so many ways in which you can customise the layouts and features, and the HUGE thing about that is, you really don't need to know any coding - it literally works right out of the box. So well written, and organised from an Admin point of view, and the logic is simple but powerful. 5 Stars for ALL reasons to buy this script! Highly Recommended."
manamedia
"Taking customization services back to back by the team flippercode, they just do not only customize their maps plugin to a whole new level for us according to our custom requirements, they also build a customized wordpress publication system for us. I must say developers in flippercode are with exceptional wordpress, woocommerce and plugins customization skills. Looking forward towards my fourth customization with the same team on the same map plugin. I highly recommend everyone to take their wordpress, woocommerce and plugin customization services. Thanks for the quality development work and on very reasonable price. Thanks Flippercode!! "
unpyemen
"Great support and plugin quality! Would definetly buy it again. The map can be customized really easy and most of the questions I had were already answered in their forum."
jaimealc
Install Plugin Now!
This plugin is exclusively available at codecanyon.net. You'll get free updates and full support to use this plugin.