tribe_delete_venue( int $postId, bool $force_delete = false )

Delete a Venue using the legacy method.

Note: This function is outdated and should be replaced with the TEC ORM tribe_venue()->delete() method

See also


Top ↑

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


Top ↑

Return

(bool) false if delete failed.


Top ↑

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;
	}

Top ↑

Changelog

Changelog
Version Description
3.0.0 Introduced.