Create Organizers

Organizers can be created programmatically using:

tribe_organizers()->set_args( $organizer_args )->create();

The $organizer_args is an array with key-value pairs, accepting arguments like in this example:

$organizer_args = [
    'organizer'   => "Programmatically Created Organizer",
    'status'      => 'publish',
    'phone'       => 1231231234,
    'website'     => 'https://example.com',
    'email'       => 'test@example.com',
    'excerpt'     => 'la la la la',
    'description' => 'testing',
];

The only field that is required when creating a new organizer is the title, which can be aliased as 'organizer'

Further information about accepted arguments when creating an organizer:

  • int $phone The phone contact information for the organizer
  • string $website A valid external URL for the organizer
  • string $email The e-mail address to contact the organizer.
  • string $excerpt An optional hand-crafted summary describing your organizer.
  • string $description A description for your organizer. Can include HTML.