eo_get_venue_address( $venue_slug_or_id = '' )
Returns an array with address details of the event's venue.
The keys consist of
- 'state' - the state/province/county of the venue
If used without any arguments uses the venue of the current event.
Return the details of venue 16. (Please note when using the ID it must be an integer - that is 16 not '16').
$address_details = eo_get_venue_address(16);
Print the post-code of venue 'my-venue-slug'
$address_details = eo_get_venue_address('my-venue-slug');
echo "The post code of 'my-venue-slug' is: ".$address_details['postcode'];
Return the details of the venue of event 23 we can use
eo_get_venue() to obtain the venue ID.
$venue_id = eo_get_venue(23);
$address_details = eo_get_venue_address($venue_id);
$venue_slug_or_id = ''
The venue ID (as an integer) or slug (as a string). Uses venue of current event if empty.
Array of venue address details