• Resolved tezalsec

    (@tezalsec)


    Hi James,

    I noticed not all attachments are available when resending emails via your plugin. It just says: “An attachment was sent but it was not in the media library”.

    I had hoped it would add my pdf attachment. These pdfs, in my case, are in a subfolder within the uploads folder.

    A cool feature would be to create a filter function, that allows folks via a simple snippet to designate extra (sub)folders that your code would look in to find and add attachments for resending emails.

    Something like:

    add_filter( ‘wp_mail_catcher_resend_add_attachment_location’, ‘add_my_attachments’ );
    function add_my_attachments( $locations) {
    $locations[] = ‘uploads/pdfs/: ‘;
    return $locations;
    }

    I hope you will consider it.

    Thanks a lot for your great plugin!




    • This topic was modified 1 year, 6 months ago by tezalsec.
Viewing 1 replies (of 1 total)
  • Plugin Author JWardee

    (@wardee)

    Hi @tezalsec

    Thank you for the suggestion, I’ve added it to our GitHub tracker and will look into it further when I get some time. I’m going to mark this topic as resolved because I track everything through GitHub ??

    Thanks again,
    James

Viewing 1 replies (of 1 total)
  • The topic ‘Feature request: filter adding custom attachments location’ is closed to new replies.