eo_update_venue
since 1.4.0
eo_update_venue( $venue_id, $args = array() )
Updates new venue in the database.
Calls wp_insert_term() to update the taxonomy term
Updates venue meta data to database (for 'core' meta keys)
The $args is an array - the same as that accepted by wp_update_term()
The $args array can also accept the following keys:
- description
- address
- city
- state
- postcode
- country
- latitude
- longitude
Parameters
int
|
$venue_id |
The Term ID of the venue to update
|
array
|
$args = array() |
Array as accepted by wp_update_term and including the 'core' metadata
|
Return value
array|\WP_Error
|
Array of term ID and term-taxonomy ID or a WP_Error on error
|
Hooks
Changelog