tribe_eb_get_id( int $post_id = null )
Returns the Eventbrite id for the post/event
Contents
Parameters
- $post_id
-
(int) (Optional) the event ID (optional if used in the loop)
Default value: null
Return
(int) event id, false if no event is associated with post
Source
File: src/functions/template-tags.php
function tribe_eb_get_id( $post_id = null ) { $api = tribe( 'eventbrite.event' ); return $api->get_event_id( $post_id ); }
Changelog
Version | Description |
---|---|
1.0 | Introduced. |