HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/lipovac/wp-content/plugins/the-events-calendar/src/Tribe/Event_Tickets/Ticket_Email.php
<?php
/**
 * The Events Calendar integration with Event Tickets ticket email
 *
 * @package The Events Calendar
 * @subpackage Event Tickets
 * @since 4.0.2
 */
class Tribe__Events__Event_Tickets__Ticket_Email {
	/**
	 * Constructor
	 */
	public function __construct() {
		$this->add_hooks();
	}

	/**
	 * Adds hooks for injecting/overriding aspects of the ticket emails from Event Tickets
	 *
	 * @since 4.0.2
	 */
	public function add_hooks() {
		add_filter( 'event_tickets_email_include_start_date', array( $this, 'maybe_include_start_date' ), 10, 2 );
	}

	/**
	 * Includes the start date in the ticket email if the post type is appropriate
	 *
	 * @since 4.0.2
	 * @param boolean $include_start_date Whether or not to include the start date
	 * @param int $event_id Event ID
	 * @return boolean
	 */
	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;
	}
}