eo_insert_venue
since 1.4.0
eo_insert_venue( $name, $args = array() )
Adds a new venue to the database.
Calls wp_insert_term() to create the taxonomy term
Adds 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
string
|
$name |
the venue to insert
|
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
Resources