tribe_update_venue( int $postId, array $args )
Update a Venue using the legacy method.
Contents
Note: This function is outdated and should be replaced with the TEC ORM tribe_venue()->save() method
See also
Parameters
- $postId
-
(int) (Required) ID of the Venue to be modified.
- $args
-
(array) (Required) Args for updating the post. See tribe_create_venue() for more info.
Return
(int) ID of the Venue that was created. False if update failed.
Source
File: src/functions/advanced-functions/venue.php
function tribe_update_venue( $postId, $args ) {
$postId = Tribe__Events__API::updateVenue( $postId, $args );
return $postId;
}
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |