tribe_is_event( $postId = null )
Event Type Test
Contents
Checks type of $postId to determine if it is an Event
Parameters
-
(int|WP_Post) (Required) The event/post id or object. (optional)
Return
(bool) true if this post is an Event post type
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 ); }