Where did this Gravity Forms email come from?

SOLUTION: Append the original URL to Gravity Forms notifications automatically

Most developers who use Gravity Forms have had this situation come up at some point. You get a Gravity Form email notification and you have no idea which website it came from! This can happen when your email is set as the administrative email on the Settings > General page because Gravity Forms defaults to using that address for new form notifications. Unless your client manually changes it, you may get all the email notifications and not know what website they came from. This happened to me recently and so I created this code snippet to fix it.

The premise behind the code snippet is simple – use Gravity Forms’ own hook and merge tags to append the original URL to Gravity Forms notifications automatically.

Voilà! The original URL is appended to the Gravity Form notification. Add this code to all your sites going forward and you will never have to worry about this situation again.

What do you think?