Tribe__Tickets_Plus__Commerce__WooCommerce__Main::send_tickets_email_for_attendees( array $attendees, array $args = array() )

Send RSVPs/tickets email for attendees.


Parameters

$attendees

(array) (Required) List of attendees.

$args

(array) (Optional) The list of arguments to use for sending ticket emails.

  • 'subject'
    (string) The email subject.
  • 'content'
    (string) The email content.
  • 'from_name'
    (string) The name to send tickets from.
  • 'from_email'
    (string) The email to send tickets from.
  • 'headers'
    (array|string) The list of headers to send.
  • 'attachments'
    (array) The list of attachments to send.
  • 'provider'
    (string) The provider slug (rsvp, tpp, woo, edd).
  • 'post_id'
    (int) The post/event ID to send the emails for.
  • 'order_id'
    (string|int) The order ID to send the emails for.

Default value: array()


Top ↑

Return

(int) The number of emails sent successfully.


Top ↑

Source

File: src/Tribe/Commerce/WooCommerce/Main.php

	public function send_tickets_email_for_attendees( $attendees, $args = [] ) {
		$args = array_merge(
			[
				'provider' => 'woo',
			],
			$args
		);

		return parent::send_tickets_email_for_attendees( $attendees, $args );
	}

Top ↑

Changelog

Changelog
Version Description
5.1.0 Introduced.