eo_get_venue_meta
since 1.5.0
eo_get_venue_meta( $venue_id, $key = '', $single = true )
Retrieve post meta field for a venue.
This function returns the values of the venue meta with the specified key from the specified venue. (Specified by the venue ID - the taxonomy term ID).
Examples
<?php $key_1_values = eo_get_venue_meta(76, 'key_1'); ?>
To retrieve only the first value of a given key:
<?php $key_1_value = eo_get_venue_meta(76, 'key_1', true); ?>
Parameters
int
|
$venue_id |
Venue (term) ID.
|
string
|
$key = '' |
Optional. The meta key to retrieve. By default, returns data for all keys.
|
bool
|
$single = true |
Whether to return a single value.
|
Return value
mixed
|
Will be an array if $single is false. Will be value of meta data field if $single is true.
|
Changelog
Resources