Automattic / camptix

Moved to https://github.com/WordPress/wordcamp.org/
177 stars 97 forks source link

How can I add the questions in notification email? #237

Open davidperezgar opened 5 years ago

davidperezgar commented 5 years ago

Hello, I've been looking for a shortcode to show Questions in notification email, but I didn't see it.

Is there any way to get that information in notification email?

davidperezgar commented 5 years ago

Any idea where I can start?

coreymckrill commented 5 years ago

Hi @davidperezgar Sorry for the delayed response here. There isn't currently a way to include questions/answers in the notification emails. It that's something you'd like to work on, we could certainly work with you on a Pull Request.

As a starting point, here is where the existing notification shortcodes get initialized: https://github.com/Automattic/camptix/blob/master/camptix.php#L333

iandunn commented 5 years ago

What's the use case for this? At first glance it doesn't seem like it'd be that useful for attendees, since they already known the answers.

🤔

Well, I guess someone might forget which t-shirt size they chose, for example, so maybe it could be useful? What kinds of things were you thinking about David?

davidperezgar commented 5 years ago

Thanks for your replies. Yes, it's interesting becouse they have a proof that they were answered. Should I make a pull request or make a Camptix Addon? I've tried an addon, but I couldn't manage to get the atendee id, or making work this function: https://github.com/Automattic/camptix/blob/master/camptix.php#L388 As plugin addon...

I've been using the questions to make a workshop atendee list...