gmb_snazzy_maps

The Maps Builder gmb snazzy maps hook.

Description

apply_filters( 'gmb_snazzy_maps', (callback) $array ); 

Parameters (1)

0. $array — Optional. (callback) => array( 'none' => __( 'None', 'google-maps-builder' ), '68' => __( 'Aqua', 'google-maps-builder' ), '73' => __( 'A Dark World', 'google-maps-builder' ), '28' => __( 'Bluish', 'google-maps-builder' ), '80' => __( 'Cool Grey', 'google-maps-builder' ), '77' => __( 'Clean Cut', 'google-maps-builder' ), '36' => __( 'Flat Green', 'google-maps-builder' ), '44' => __( 'MapBox', 'google-maps-builder' ), '83' => __( 'Muted Blue', 'google-maps-builder' ), '22' => __( 'Old Timey', 'google-maps-builder' ), '1' => __( 'Pale Dawn', 'google-maps-builder' ), '19' => __( 'Paper', 'google-maps-builder' ), '37' => __( 'Lunar Landscape', 'google-maps-builder' ), '75' => __( 'Shade of Green', 'google-maps-builder' ), '27' => __( 'Shift Worker', 'google-maps-builder' ), '15' => __( 'Subtle Grayscale', 'google-maps-builder' ), '50' => __( 'The Endless Atlas', 'google-maps-builder' ), )
The array.

Usage

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

Defined (1)

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

/vendor/wordimpress/maps-builder-core/includes/admin/class-gmc-admin.php  
  1. 'options' => apply_filters( 'gmb_snazzy_maps', array(