tribe_delete_venue( int $postId, bool $force_delete = false )
Delete a Venue using the legacy method.
Contents
Note: This function is outdated and should be replaced with the TEC ORM tribe_venue()->delete() method
See also
Parameters
- $postId
-
(int) (Required) ID of the Venue to be deleted.
- $force_delete
-
(bool) (Optional) Whether to bypass trash and force deletion. Defaults to false.
Default value: false
Return
(bool) false if delete failed.
Source
File: src/functions/advanced-functions/venue.php
function tribe_delete_venue( $postId, $force_delete = false ) {
$success = Tribe__Events__API::deleteVenue( $postId, $args );
return $success;
}
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |