eo_get_venue_description
since 1.0.0
eo_get_venue_description( $venue_slug_or_id = '' )
Returns the description of the description of an event.
If used with any arguments uses the venue of the current event.
Returns the description 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
venue by ID, the ID must be an integer.
Example
<?php
$event_id = 7;
$venue_id = eo_get_venue( $event_id );
echo eo_get_venue_description( $venue_id );
echo eo_get_venue_description( 12 );
echo eo_get_venue_description( '12' );
?>
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
string
|
The description. of the corresponding venue
|
Changelog
Related