google_map
The WordPress Core google map shortcode.
Usage
- // basic usage
- echo do_shortcode('[google_map]');
- // variable usage
- $result = do_shortcode('[google_map]');
- echo $result;
Defined (1)
The shortcode is defined in the following location(s).
- /embed_google_map.php
- // Run the function on post content prior to printing on the screen
- add_filter('the_content', 'the_google_map_embedder');
- // Run the function on Text Widget content prior to printing on the screen
- add_filter('widget_text', 'the_google_map_embedder');
- // Register short code
- add_shortcode( 'google_map', 'google_map_shortcode' );
- /** Register WordPress hooks - Backend */
- if ( is_admin() ) {
- // Add link to the Settings menu