pw_map

The Simple Google Maps Short Code pw map shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[pw_map]'); 
  1. // variable usage 
  2. $result = do_shortcode('[pw_map]'); 
  3. echo $result;  

Defined (1)

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

/simple-google-map-short-code.php  
  1. return ob_get_clean(); 
  2. else : 
  3. return __( 'This Google Map cannot be loaded because the maps API does not appear to be loaded', 'simple-google-maps-short-code' ); 
  4. endif; 
  5. add_shortcode( 'pw_map', 'pw_map_shortcode' ); 
  6.  
  7. /** 
  8. * Retrieve coordinates for an address 
  9. * Coordinates are cached using transients and a hash of the address