google_map

The WordPress Core 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. add_filter('the_content', 'the_google_map_embedder'); 
  3. // Run the function on Text Widget content prior to printing on the screen 
  4. add_filter('widget_text', 'the_google_map_embedder'); 
  5. // Register short code 
  6. add_shortcode( 'google_map', 'google_map_shortcode' ); 
  7.  
  8. /** Register WordPress hooks - Backend */ 
  9.  
  10. if ( is_admin() ) { 
  11. // Add link to the Settings menu