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
title *
- REQUIRED
- Type:
string - Description: The title of the post
author
- Type:
int,string - Description: The post author ID
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’
date_utc
- Type:
string - Description: The post publication date (UTC time zone)
- Format: ‘UTC±X’
description
- Type:
string - Description: The post description, this field accepts HTML.
excerpt
- Type:
string - Description: The post excerpt
slug
- Type:
string - Description: The post slug
status
- Type:
string - Description: The post status. Defaults to ‘draft’
- Options: ‘publish’, ‘draft’, or ‘pending’