How to see if event is featured in PHP? [closed]

I believe you would want to use this function (from the-events-calendar/src/Tribe/Featured_Events.php:45):

/**
 * Confirms if an event is featured.
 * @param int|WP_Post $event
 *
 * @return bool
 */
public function is_featured( $event = null ) {
    $event_id = Tribe__Main::post_id_helper( $event );

    if ( ! $event_id ) {
        return false;
    }

    return (bool) get_post_meta( $event_id, self::FEATURED_EVENT_KEY, true );
}

I’ve never used the plugin, but it seems like you would use it like this (giving it the $post object or the post id):

if( Tribe__Events__Featured_Events::is_featured( $post ) ) {
    // it's featured!
}