Email notification to multiple organizers for RSVPs.
So… I guess the question is why does tribe_get_organizer_email only return the email address of one organizer when multiple organizers are listed. I see tribe_get_organizers can be passed with an arg to return all organizers for a single event… can we then query that result for the emails?
Thanks for getting in touch with us! I’ll be happy to help you with this topic.
You can tweak the snippet to first get all the organizers using the tribe_get_organizers() function to return all the organizers in an array of organizer post objects.
Getting the organizers ID’s from that array and passing them as an argument in the tribe_get_organizer_email() function, you can get all the organizers emails to add them in the tribe_rsvp_email_headers.
I hope that helps. Let me know if you have any follow up questions.
You will need to create a loop that uses the tribe_get_organizer_email() function inside to get each organizers email address and saves it into a variable as a string of comma separated email addresses, that you can then use in the tribe_rsvp_email_headers.
Does it help? We are limited in how much support we can give for custom development questions, but we always like helping out and at least point users into the right direction as much possible.
Let me know if you need further help tweaking the snippet to achieve that.
Thanks. I believe we are in the same boat wherein the client is casually asking for custom development and we are trying to do so if there is an easy way but not if it requires any real time expenditure. (Since they won’t be paying for it!) If there is a simple way (that falls within your support limitations) of modifying the snippet to send the RSVP notification to multiple recipients, I will gladly accept it. If not, I will pass on to the end client that this will require custom work.
Thanks for following up with this. I really understand your situation.
I will try to come up with a working snippet to accomplish what you are looking for. However, it might take me a couple of days before I can take a look into this, depending on our help desk load.
I will come back as soon as I have something, so please hang in there 🙂
My apologies for taking so long to get back to this. We’ve been really busy for the past weeks and I’ve just found some time to work on this.
I have been able to tweak the snippet so that it sends a copy of the ticket email to all the event organizers that have a valid email address.
I haven’t tested much, so please test it out and let me know if it works for your site:
The topic ‘Email notification to multiple organizers for RSVPs.’ is closed to new replies.