Create Arguments

This document provides a list of acceptable arguments and their descriptions for creating a new event, organizer, or venue using the Events Calendar ORM. These are the arguments ($args) that can be passed as an array of key-value pairs in the following code:

tribe_events()->set_args( $args )->create(); 

For more context (specific to events), check out our examples of each argument and use cases.

Post Fields

Top ↑

title *

  • REQUIRED
  • Type: string
  • Description: The title of the post

Top ↑

author

  • Type: int, string
  • Description: The post author ID

Top ↑

date

  • Type: string
  • Description: The post publication date. If in the future, the status will automatically be ‘Scheduled’
  • Format: ‘YYYY-MM-DD HH:MM:SS’

Top ↑

date_utc

  • Type: string
  • Description: The post publication date (UTC time zone)
  • Format: ‘UTC±X’

Top ↑

description

  • Type: string
  • Description: The post description, this field accepts HTML.

Top ↑

excerpt

  • Type: string
  • Description: The post excerpt

Top ↑

slug

  • Type: string
  • Description: The post slug

Top ↑

status

  • Type: string
  • Description: The post status. Defaults to ‘draft’
  • Options: ‘publish’, ‘draft’, or ‘pending’