Google Map Functions

Display functions (template-tags) for use in WordPress templates.

Google Map Embed Test

tribe_embed_google_map([int $postId = null])

Check if embed google map is enabled for this event.

Parameters

  • int
    $postId: Id of the post, if none specified, current post is used

Returns

  • bool

More Info

  • return: True if google map option is set to embed the map
  • since: 2.0

Google Map Embed

tribe_get_embedded_map([string $postId = null], [int $width = ''], [int $height = ''], [bool $force_load = false])

Returns an embedded google maps for an event

Parameters

  • string
    $postId
  • int
    $width
  • int
    $height
  • bool
    $force_load: If true, then load the map even if an address is not provided.

Returns

  • string

More Info

  • return: An iframe pulling http://maps.google.com/ for this event
  • since: 2.0

Google Map Link

tribe_get_map_link([string $postId = null])

Returns a url to google maps for the given event

Parameters

  • string
    $postId

Returns

  • string

More Info

  • return: A fully qualified link to http://maps.google.com/ for this event
  • since: 2.0

Google Map Link Test

tribe_show_google_map_link([int $postId = null])

Check if google map link is enabled for this event

Parameters

  • int
    $postId: Id of the post, if none specified, current post is used

Returns

  • bool

More Info

  • return: True if google map link is set to display the event
  • since: 2.0

Modern Tribe Newsletter

Insight, Discounts & Notices for People Who Kick Ass..