eo_get_venue_name Since 1.0.0
Located at includes/event-organiser-venue-functions.php
Returns the name of the venue of an event. If used without any arguments uses the venue of the current event.
Returns the name of a venue specified by it's slug or ID. If used inside the
loop, it can return the name of the current post's venue. If specifying the
venue by ID, the ID must be an integer. This function behaves
eo_get_venue_slug() which takes the event ID,
rather than venue ID or slug, as an optional argument.
Inside the loop, you can output the current event's venue
<?php echo eo_get_venue_name(); ?>
To get the name of event with id 7, you can use
obtain the venue ID of the event.
<?php $venue_id = eo_get_venue(7); $venue_name = eo_get_venue_name(%venue_id); ?>
||The venue ID (as an integer) or slug (as a string). Uses venue of current event if empty.|
Return value summary
||The name of the corresponding venue|