impress-org / givewp-snippet-library

A collection of code snippets to enhance or expand on the free Give WordPress Donation Plugin.
https://givewp.com
140 stars 90 forks source link

Create magic-tag.php #13

Closed rumspeed closed 8 years ago

rumspeed commented 8 years ago

It's Magic!

mathetos commented 8 years ago

Hey @rumspeed

Looks interesting. By "magic" you just mean that the content of the tag will only output if the donation comes from a specific form, right?

If so, that's how all our tags work. If there is no content submitted to a specific email tag, nothing outputs at all.

Clarify a bit for me.

DevinWalker commented 8 years ago

Bump

Benunc commented 8 years ago

The way I understand his tag's magic is that he can put one tag that pulls from several different fields, depending on the form.

It is an alternative method to solving the problem of sending form-specific emails, by being able to put a tag in the email that chooses from different field data depending on the form. With this method, you don't need an extra email template, because the tag is doing the work for you.

DevinWalker commented 8 years ago

Looks like something we can work with... I'm merging it.