Email_Abstract::get_from_email()
Get the “From” email.
Return
(string) The "from" email.
Source
File: src/Tickets/Emails/Email_Abstract.php
public function get_from_email(): string {
$from_email = tribe_get_option( Emails_Settings::$option_sender_email, tribe( Emails_Settings::class )->get_default_sender_email() );
/**
* Filter the from email.
*
* @since 5.5.9
*
* @param array $from_email The "from" email.
* @param string $id The email ID.
* @param Email_Abstract $this The email object.
*/
$from_email = apply_filters( 'tec_tickets_emails_from_email', $from_email, $this->id, $this );
/**
* Filter the from email for the particular email.
*
* @since 5.5.10
*
* @param array $from_email The "from" email.
* @param string $id The email ID.
* @param Email_Abstract $this The email object.
*/
$from_email = apply_filters( "tec_tickets_emails_{$this->slug}_from_email", $from_email, $this->id, $this );
return $from_email;
}
Changelog
| Version | Description |
|---|---|
| 5.5.9 | Introduced. |