tribe_is_event( $postId = null )

Event Type Test

Checks type of $postId to determine if it is an Event


Parameters

(int|WP_Post) (Required) The event/post id or object. (optional)


Top ↑

Return

(bool) true if this post is an Event post type


Top ↑

Source

File: src/functions/template-tags/general.php

	function tribe_is_event( $postId = null ) {
		return apply_filters( 'tribe_is_event', Tribe__Events__Main::instance()->isEvent( $postId ), $postId );
	}