gmw_thumb_map_src

The Google Maps Widget gmw thumb map src hook.

Description

apply_filters( 'gmw_thumb_map_src', (unknown) $map_src, (unknown) $instance ); 

Parameters (2)

0. $map_src (unknown)
The map src.
1. $instance (unknown)
The instance.

Usage

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

Defined (1)

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

/gmw-widget.php  
  1. $map_src = apply_filters('gmw_thumb_map_src', $map_src, $instance);