Tribe__Events__Event_Tickets__Ticket_Email::maybe_include_start_date( boolean $include_start_date, int $event_id )

Includes the start date in the ticket email if the post type is appropriate


Parameters

$include_start_date

(boolean) (Required) Whether or not to include the start date

$event_id

(int) (Required) Event ID


Top ↑

Return

(boolean)


Top ↑

Source

File: src/Tribe/Event_Tickets/Ticket_Email.php

	public function maybe_include_start_date( $include_start_date, $event_id ) {
		// if the post type isn't the TEC post type, don't change the boolean
		if ( Tribe__Events__Main::POSTTYPE !== get_post_type( $event_id ) ) {
			return $include_start_date;
		}

		return true;
	}

Top ↑

Changelog

Changelog
Version Description
4.0.2 Introduced.