I can't find an option in this regard. It's possible? If built-in is not possible, what hook would you recommend to achieve this?
What happens is that in a project built with Toolset I am going to work with an image gallery. I would be happy to have all the files in one place for bulk download (if you have seen someone in a similar dilemma and there is a simpler option, I would appreciate it)
Thank you very much, I have made progress. I have managed to send myself an email with links to the images (which would be an improvement for me anyway, at least I could select all the links and download them with a program or browser extension)
But I'm a bit stuck with finally attaching the images to the mail. I check the wordpress documentation and it should work, but it doesn't. Could you give me a hand? Am I missing something in the example code?
It wasn't easy for me but I managed it, the problem I had is that the wp_mail() function expects the full local server path (for example: /home/user/public_html/wp-content/uploads/2024/05/image- example.jpg)
Then you have to work on that argument before inserting it into wp_mail(). I did it something like: