eo_add_venue_meta
since 1.5.0
eo_add_venue_meta( $venue_id, $key, $value, $unique = false )
Add meta data field to a venue
You should avoid the following 'core' keys:
- _description
- _address
- _city
- _state
- _postcode
- _country
- _lat
- _lng
It is strongly recommended that you prefix your keys with and underscore.
Parameters
int
|
$venue_id |
Venue (term) ID.
|
string
|
$key |
Metadata name.
|
mixed
|
$value |
Metadata value.
|
bool
|
$unique = false |
Optional, default is false. Whether the same key should not be added.
|
Return value
bool
|
False for failure. True for success.
|
Changelog
Resources