The rpress_email_attachments filter allows you to add/remove file attachments for emails sent through RestroPress. It receives two parameters:
- $attachments – The attachments already attached to the email (none by default)
- $emails_object – The current instance of the rpress_emails class