These functions can be used to manipulate Organizer data. These functions may be useful for integration with other WordPress plugins and extended functionality.
Table Of Contents
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
- return: ID of the Organizer that was created. False if insert failed.
- see: wp_insert_post()
- link: http://codex.wordpress.org/Function_Reference/wp_insert_post
- since: 2.0.1
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
- return: false if delete failed.
- see: wp_delete_post()
- link: http://codex.wordpress.org/Function_Reference/wp_delete_post
- since: 2.0.1
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
- return: ID of the Organizer that was created. False if update failed.
- see: tribe_create_organizer()
- see: wp_update_post()
- link: http://codex.wordpress.org/Function_Reference/wp_update_post
- since: 2.0.1
