Organizer Post Type

These functions can be used to manipulate Organizer data. These functions may be useful for integration with other WordPress plugins and extended functionality.

Create an Organizer

tribe_create_organizer(array $args)

$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.

Parameters

  • array
    $args: Elements that make up post to insert.

Returns

  • int

More Info

Delete an Organizer

tribe_delete_organizer(int $postId, [bool $force_delete = false])

Parameters

  • int
    $postId: ID of the Organizer to be deleted.
  • bool
    $force_delete: Whether to bypass trash and force deletion. Defaults to false.

Returns

  • bool

More Info

Update an Organizer

tribe_update_organizer(int $postId, array $args)

Parameters

  • int
    $postId: ID of the Organizer to be modified.
  • array
    $args: Args for updating the post. See tribe_create_organizer() for more info.

Returns

  • int

More Info

Modern Tribe Newsletter

Insight, Discounts & Notices for People Who Kick Ass..