Skip to content
Kevin Hoffman edited this page Oct 4, 2018 · 2 revisions

Besides the main class, any class that is shared between free and pro is declared in the core repo and extended in the plugin.

All shared views are in the Core library. Actions have been added to them for adding additional markup in free and pro. This will also facilitate add-on development.

Note: Both free and pro plugins share the same translation text domain google-maps-builder.

Naming Conventions:

  • Class Prefix:
    • In plugin : Google_Maps_Builder_
    • In core library: Google_Maps_Builder_Core_
  • File Name Prefix:
    • In plugin : class-gmb-
    • In core library: class-gmc-

PHP Hooks

gmb_localized_data
Availability: Free/Pro
Description: Filters the map data used to construct the Google Map.
View Example

gmb_mashup_infowindow_content
Description: Filters the infowindow content that appears when a marker is selected.
Availability: Free/Pro
View Example

gmb_mashup_infowindow_content_readmore
Availability: Free/Pro
Description: Filters the “Read More” text that displays in the infowindow.
View Example

gmb_mashup_builder_fields
Availability: Pro
Description: Filters the CMB2 fields used to define a mash-up.

gmb_get_mashup_markers_callback
Availability: Pro
Description: Filters the array of mash-up markers.

Google Maps Builder

Local Development

Developer Notes

Clone this wiki locally