30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Create Venue

events/create-venue creates a venue. Only a name is required; the address fields are all optional, and it defaults to draft.

It goes through the calendar’s own creation path, so the address fields land in the meta keys the calendar actually reads.

At a glance

Abilityevents/create-venue
ToolsetThe Events Calendar — toolset/events-calendar
GroupThe Events Calendar › Venues
RequiresThe Events Calendar, active on the site
Capabilitymanage_options
SafetyWrites data
RepeatableNot idempotent — each call changes the row set, so re-running is not a no-op
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

Venue fields are stored under prefixed meta keys the calendar defines, not under the plain names they are given in the admin form. Writing city as post meta does nothing useful; the calendar is looking somewhere else entirely.

Using tribe_venues() sidesteps the question. The same function the admin screen calls, the same keys written, the same hooks fired — so anything else on the site that reacts to a new venue reacts to this one.

Draft by default, for the same reason as events: a venue created by an assistant is usually one half of a task, and it should be looked at before it is linked to a public event.

Input

NameTypeRequiredWhat it is
titlestringYesThe venue name.
statusstringNo — defaults to draftPost status: draft, publish, pending or private.
addressstringNoStreet address.
citystringNoCity.
statestringNoState or province.
zipstringNoPostal code.
countrystringNoCountry.
phonestringNoPhone number.
websitestringNoWebsite URL.

What comes back

NameTypeWhat it is
venueobjectThe created venue, as events/get-venue would return it.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Add a venue called “Temple Quarter Studio” at 14 Avon Street, Bristol.

It resolves to one call:

{
  "ability": "events/create-venue",
  "parameters": {
    "title": "Temple Quarter Studio",
    "address": "14 Avon Street",
    "city": "Bristol",
    "country": "United Kingdom",
    "status": "publish"
  }
}

Worth knowing

  • Search with events/list-venues first. Duplicate venues are the most common mess on an established calendar, and they are tedious to unpick afterwards.
  • Not idempotent — two calls make two venues.
  • A venue must be published before a published event linking to it will display its details to visitors.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading