tribe_create_organizer( array $args )

Create an Organizer

$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 an Organizer:

  • Organizer string – Title of the Organizer. (required)
  • Email string – Email address of the Organizer.
  • Website string – URL of the Organizer.
  • Phone string – Phone number for the Organizer.

See also #


Top ↑

Parameters #

$args

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


Top ↑

Return #

(int) ID of the Organizer that was created. False if insert failed.


Top ↑

Source #

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

	function tribe_create_organizer( $args ) {
		$postId = Tribe__Events__API::createOrganizer( $args );

		return $postId;
	}