tribe_create_venue( array $args )

Create a Venue using the legacy method.

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

$args accepts all the args that can be passed to wp_insert_post(). In addition to that, the following args can be passed specifically for the process of creating a Venue:

  • Venue string – Title of the Venue. (required)
  • Country string – Country code for the Venue country.
  • Address string – Street address of the Venue.
  • City string – City of the Venue.
  • State string – Two letter state abbreviation.
  • Province string – Province of the Venue.
  • Zip string – Zip code of the Venue.
  • Phone string – Phone number for the Venue.

See also


Top ↑

Parameters

$args

(array) (Required) Elements that make up post to insert.


Top ↑

Return

(int|false) ID of the Venue that was created. False if insert failed.


Top ↑

Source

File: src/functions/advanced-functions/venue.php

	function tribe_create_venue( $args ) {
		$postId = Tribe__Events__API::createVenue( $args );

		return $postId;
	}

Top ↑

Changelog

Changelog
Version Description
3.0.0 Introduced.