tribe_get_map_link( int $post_id = null )

Google Map Link

Returns a URL to Google Maps for the given event.


Parameters

$post_id

(int) (Optional) The event post ID.

Default value: null


Top ↑

Return

(string) A fully qualified link to <a href="https://maps.google.com/">https://maps.google.com/</a> for this event.


Top ↑

Source

File: src/functions/template-tags/google-map.php

	function tribe_get_map_link( $postId = null ) {
		$tec    = Tribe__Events__Main::instance();
		$output = esc_url( $tec->googleMapLink( $postId ) );

		return apply_filters( 'tribe_get_map_link', $output );
	}

Top ↑

Changelog

Changelog
Version Description
4.6.24 Introduced.