eo_get_venue_latlng
since 1.0.0
eo_get_venue_latlng( $venue_slug_or_id = '' )
Returns an latitude-longitude array (keys 'lat', 'lng') If used with any arguments uses the venue of the current event.
Returns a latitude-longitude array of a venue specified by it's slug or ID. When used without an argument it uses the event specified in the global $post
(i.e. the current event in the Loop). If
specifying the venue by ID, the ID must be an integer.
Parameters
int|string
|
$venue_slug_or_id = '' |
The venue ID (as an integer) or slug (as a string). Uses venue of current event if empty.
|
Return value
array
|
Array with keys 'lat' and 'lng' with corresponding float values.
|
Changelog