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