tribe_create_organizer( array $args )
Create an Organizer using the legacy method.
Contents
Note: This function is outdated and should be replaced with the TEC ORM tribe_organizers()->create() method.
Legacy Note: $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
Parameters
- $args
-
(array) (Required) Elements that make up post to insert.
Return
(int|false) ID of the Organizer that was created. False if insert failed.
Source
File: src/functions/advanced-functions/organizer.php
function tribe_create_organizer( $args ) {
$postId = Tribe__Events__API::createOrganizer( $args );
return $postId;
}
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |