google_map

The Embed Google Map google map shortcode.


Usage

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

Defined (1)

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

/embed_google_map.php  
  1. // Run the function on post content prior to printing on the screen 
  2. // Run the function on Text Widget content prior to printing on the screen 
  3. // Register short code 
  4. add_shortcode( 'google_map', 'google_map_shortcode' ); 
  5.  
  6. /** Register WordPress hooks - Backend */ 
  7.  
  8. if ( is_admin() ) { 
  9. // Add link to the Settings menu