eo_get_venue_id_by_slugorid
since 1.6
eo_get_venue_id_by_slugorid( $venue_slug_or_id = '' )
A utility function for getting the venue ID from a venue ID or slug.
Useful for when we don't know which is being passed to us, but we want the ID.
IDs must be cast as integers
Parameters
mixed
|
$venue_slug_or_id = '' |
The venue ID as an integer. Or Slug as string. Uses venue of current event if empty.
|
Return value
int
|
The corresponding venue (event-venue term) ID or false if not found.
|
Changelog