gmb_shortcode_tag

The Maps Builder gmb shortcode tag hook.

Description

apply_filters( 'gmb_shortcode_tag', (string) $google_maps ); 

Parameters (1)

0. $google_maps (string) => 'google_maps'
The google maps.

Usage

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

Defined (3)

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

/vendor/wordimpress/maps-builder-core/includes/admin/shortcode-generator-i18n.php  
  1. shortcode_tag: "' . esc_js( apply_filters( 'gmb_shortcode_tag', 'google_maps' ) ) . '" 
/includes/admin/shortcode-generator-i18n.php  
  1. shortcode_tag: "' . esc_js( apply_filters( 'gmb_shortcode_tag', 'google_maps' ) ) . '" 
  1. shortcode_tag: "' . esc_js( apply_filters( 'gmb_shortcode_tag', 'google_maps' ) ) . '"