Email_Abstract::get_attachments( array $attachments = array() )
Get email attachments.
Contents
Parameters
- $attachments
-
(array) (Optional) The attachments.
Default value: array()
Return
(array)
Source
File: src/Tickets/Emails/Email_Abstract.php
public function get_attachments( $attachments = [] ): array {
/**
* Filter the attachments.
*
* @since 5.5.9
*
* @param array $attachments The attachments.
* @param string $id The email ID.
* @param Email_Abstract $this The email object.
*/
$attachments = apply_filters( 'tec_tickets_emails_attachments', $attachments, $this->id, $this );
/**
* Filter the attachments for the particular email.
*
* @since 5.5.10
*
* @param array $attachments The attachments.
* @param string $id The email ID.
* @param Email_Abstract $this The email object.
*/
$attachments = apply_filters( "tec_tickets_emails_{$this->slug}_attachments", $attachments, $this->id, $this );
return $attachments;
}
Changelog
| Version | Description |
|---|---|
| 5.5.9 | Introduced. |