Tribe__Tickets_Plus__Commerce__WooCommerce__Email::get_subject()
Gets the subject for the email, defaulting to “Your tickets from {site_title}”.
Return
(string)
Source
File: src/Tribe/Commerce/WooCommerce/Email.php
public function get_subject() {
$subject = $this->subject;
$woo_settings = get_option( 'woocommerce_wootickets_settings' );
if ( ! empty( $woo_settings['subject'] ) ) {
$subject = $woo_settings['subject'];
}
/**
* Allows for filtering the WooCommerce Tickets email subject.
*
* @param string $subject The email subject.
* @param WC_Order $ticket The WC_Order for this ticket purchase.
*/
return apply_filters( 'wootickets_ticket_email_subject', $this->format_string( $subject ), $this->object );
}