Note: This plugin is not maintained, and relies on an Eventbrite endpoint that will cease to operate on February 20, 2020. See this issue for details and other options.
The Eventbrite API plugin brings the power of Eventbrite to WordPress, for both users and developers.
By connecting to your Eventbrite account, events can be displayed directly on your WordPress.org website, complete with event details and ticket information. Events will blend in with the design of any theme, and events can be filtered by organizer or venue, just like post archives.
As a developer, you get simple-to-use tools for integrating Eventbrite into your themes or plugins. Use the helper functions to remove the complexity and heavy-lifting of API calls, and take advantage of assorted template tags for displaying various event information.
Keyring is required for the Eventbrite API plugin to work. Once it's installed with an active connection to Eventbrite, the Eventbrite API plugin will be able to display events.
If needed, admin notices will give helpful links and prompting to get Keyring and the Eventbrite API plugin up and running. These notices will appear on the Dashboard, PLugins, Tools, and Settings admin pages until issues are resolved.
Eventbrite_API
Eventbrite_Requirements
Eventbrite_Manager
Eventbrite_API
to make API callsEventbrite_Event
Eventbrite_Query
WP_Query
for Eventbrite events (it extends WP_Query
)display_private
: (boolean) Include user events marked as Private. Default is false
. Note that this changes the endpoint called from event_search
to user_owned_events
. See the Eventbrite API docs for details.limit
: (integer) Return a maximum number of results.organizer_id
: (integer) Return only events for a certain organizer.p
: (integer) Get a single event.post__not_in
: (array) Remove certain events by ID from the results.venue_id
: (integer) Return only events for a certain venue.category_id
: (integer) Return only events for a certain category.subcategory_id
: (integer) Return only events for a certain subcategory.format_id
: (integer) Return only events for a certain format.Eventbrite_Event
WP_Post
for Eventbrite eventsWP_Post
, as that class is marked final
ID
(integer)post_title
(string)post_content
(string)post_date
(string)post_date_gmt
(string)url
(string)logo_url
(string)start
(object)end
(object)organizer
(object)venue
(object)public
(boolean)tickets
(object)Eventbrite_Templates
eventbrite_get_events( $params, $force )
$params
: (array, optional) Accepted parameters and values$force
: (boolean, optional) Force a fresh API call, ignoring any available transient. Default is false
.eventbrite_get_event( $id, $force )
$id
: (integer, required) Eventbrite event id$force
: (boolean, optional) Force a fresh API call, ignoring any available transient. Default is false
.eventbrite_search( $params, $force )
$params
: (array, optional) Accepted parameters and values. Note that not passing any parameters, while technically valid, will usually result in timeout errors. Limiting the search to user-owned events can be done by passing user.id => Eventbrite_API::$instance->get_token()->get_meta( 'user_id' )
.$force
: (boolean, optional) Force a fresh API call, ignoring any available transient. Default is false
.eventbrite_is_single( $query )
$query
: (object, optional) Accepts an Eventbrite_Query
object.true
if the passed or current query is for an event single view, false
otherwise.eventbrite_is_event( $post )
$post
: (object or integer, optional) Accepts a post/event object, or an ID.true
if it's an Eventbrite_Event object or the ID of a valid event, false
otherwise.eventbrite_paging_nav( $events )
wp_paginate_links()
.$events
: (object, required) Requires a valid Eventbrite_Query
object. This avoids having to mess with the $wp_query
object.eventbrite_event_meta()
eventbrite_event_time()
December 8 2014, 7:00 PM - 10:00 PM
eventbrite_event_venue()
address
, resource_uri
, id
, name
, latitude
, longitude
eventbrite_event_organizer()
description
, logo
, resource_uri
, id
, name
, url
, num_past_events
, num_future_events
eventbrite_event_category()
resource_uri
, id
, name
, name_localized
, short_name
, short_name_localized
eventbrite_event_subcategory()
resource_uri
, id
, name
, name_localized
, short_name
, short_name_localized
eventbrite_event_format()
resource_uri
, id
, name
, name_localized
, short_name
, short_name_localized
eventbrite_event_start()
timezone
, local
, utc
eventbrite_event_end()
timezone
, local
, utc
eventbrite_ticket_form_widget()
<iframe>
with eventbrite.com's ticket form widget.eventbrite_ticket_form_widget_height()
<iframe>
should be (pretty rough).eventbrite_event_eb_url()
eventbrite_is_multiday_event()
true
if the date is different for the start and end times, false
if they're the same.eventbrite_templates
eventbrite_meta_separator
<span class="sep"> · </span>
eventbrite_event_meta
eventbrite_paginate_links_args
paginate_links()
template tag (used by eventbrite_paging_nav()
).eventbrite_event_eb_url
eventbrite_event_venue
eventbrite_event_organizer
eventbrite_event_start
eventbrite_event_end
eventbrite_ticket_form_widget
eventbrite_ticket_form_widget_height
<iframe>
height used when outputting a ticket form widget.eventbrite_api_expansions