gmb_default_marker

The Maps Builder gmb default marker hook.

Description

apply_filters( 'gmb_default_marker', (unknown) $gmb_plugin_url_assets_img_spotlight_poi_png ); 

Parameters (1)

0. $gmb_plugin_url_assets_img_spotlight_poi_png (unknown) => GMB_PLUGIN_URL . 'assets/img/spotlight-poi.png'
The gmb plugin url assets img spotlight poi png.

Usage

To run the hook, copy the example below.
  1. $gmb_plugin_url_assets_img_spotlight_poi_png = apply_filters( 'gmb_default_marker', $gmb_plugin_url_assets_img_spotlight_poi_png ); 
  2.  
  3. if ( !empty( $gmb_plugin_url_assets_img_spotlight_poi_png ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gmb_default_marker callback 
  2. function filter_gmb_default_marker( $gmb_plugin_url_assets_img_spotlight_poi_png ) { 
  3. // make filter magic happen here... 
  4. return $gmb_plugin_url_assets_img_spotlight_poi_png
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gmb_default_marker', 'filter_gmb_default_marker', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gmb_default_marker', 'filter_gmb_default_marker', 10, 1 ); 

Defined (3)

The filter is defined in the following location(s).

/vendor/wordimpress/maps-builder-core/includes/class-gmc-admin-scripts.php  
  1. 'default_marker' => apply_filters( 'gmb_default_marker', GMB_PLUGIN_URL . 'assets/img/spotlight-poi.png' ), 
/vendor/wordimpress/maps-builder-core/includes/admin/views/markers.php  
  1. <img src="<?php echo apply_filters( 'gmb_default_marker', GMB_PLUGIN_URL . 'assets/img/spotlight-poi.png' ); ?>" class="default-marker" /> 
/includes/class-gmb-engine.php  
  1. 'default_marker' => apply_filters( 'gmb_default_marker', GMB_PLUGIN_URL . 'assets/img/spotlight-poi.png' ),