eo_get_venue_by Since 1.6
Located at includes/event-organiser-venue-functions.php
Get all venue data from database by venue field and data. This acts as a
simple wrapper for
$value is not escaped for 'name'
You must do it yourself, if required.
$value does not exist for that
return value will be false other the term will be returned.
Get the venue ID by slug (A better way is to use
$venue = eo_get_venue_by('slug','my-venue-slug'); if( $venue ) $venue_id = (int) $venue->term_id;
||Either 'slug', 'name', or 'id'|
||Search for this term value|
||Constant OBJECT, ARRAY_A, or ARRAYN|
||Optional, default is raw or no WordPress defined filter will applied.|
Return value summary
||Term Row from database. Will return false if $taxonomy does not exist or $term was not found.|