gmb_map_zoom_levels

The Maps Builder gmb map zoom levels hook.

Description

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

Parameters (1)

0. $array — Optional. (callback) => array( '21' => '21', '20' => '20', '19' => '19', '18' => '18', '17' => '17', '16' => '16', '15' => '15', '14' => '14', '13' => '13', '12' => '12', '11' => '11', '10' => '10', '9' => '9', '8' => '8', '7' => '7', '6' => '6', '5' => '5', '4' => '4', '3' => '3', '2' => '2', '1' => '1', '0' => '0', )
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'gmb_map_zoom_levels', $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_map_zoom_levels callback 
  2. function filter_gmb_map_zoom_levels( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gmb_map_zoom_levels', 'filter_gmb_map_zoom_levels', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gmb_map_zoom_levels', 'filter_gmb_map_zoom_levels', 10, 1 ); 

Defined (2)

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_map_zoom_levels', array( 
  1. 'options' => apply_filters( 'gmb_map_zoom_levels', array(