tribe_eb_get_id( int $post_id = null )

Returns the Eventbrite id for the post/event


Parameters #

$post_id

(int) (Optional) the event ID (optional if used in the loop)

Default value: null


Top ↑

Return #

(int) event id, false if no event is associated with post


Top ↑

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 );
}

Top ↑

Changelog #

Changelog
Version Description
1.0 Introduced.