gmw_widget_content

The Google Maps Widget gmw widget content hook.

Description

apply_filters( 'gmw_widget_content', (unknown) $widget_content, (unknown) $instance ); 

Parameters (2)

0. $widget_content (unknown)
The widget content.
1. $instance (unknown)
The instance.

Usage

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

Defined (1)

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

/gmw-widget.php  
  1. $out .= apply_filters('gmw_widget_content', $widget_content, $instance);