eo_get_venue_lat
since 1.0.0
eo_get_venue_lat( $venue_slug_or_id = '' )
Returns the latitude co-ordinate of a venue.
If used with any arguments uses the venue of the current event.
Returns the latitude 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
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
float
|
The latitude of the venue as a float. 0 If it doesn't exist.
|
Changelog