eo_get_venue_address Since 1.0.0
Located at includes/event-organiser-venue-functions.php
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); //$address_details = eo_get_venue_address('16'); This method is incorrect.
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
to obtain the venue ID.
$venue_id = eo_get_venue(23); $address_details = eo_get_venue_address($venue_id);
||The venue ID (as an integer) or slug (as a string). Uses venue of current event if empty.|
Return value summary
||Array of venue address details|