PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

User notification with Future Date

  1. Alex
    Member

    I want to be able to create a form that emails the user who input the form to receive a notification. When doing so, I want the email to contain a date 14 days from the date the form is filled out. I don't want this to show up in the URL to fulfil the conditional tag (this will be a voucher with an expiration date).

    What is the best way to go about this?

    Thanks

    Posted 12 years ago on Wednesday August 8, 2012 | Permalink
  2. Add this function to your theme's functions.php:
    http://pastebin.com/wTAuPEw6

    Then, in your notification, you can use this shortcode (stolen from this plugin):

    Voucher expires [date format="F j, Y" timestamp="+14 days"]

    That will output:

    Voucher expires August 22, 2012

    Does that work for you?

    Posted 12 years ago on Wednesday August 8, 2012 | Permalink
  3. Alex
    Member

    works - legend!

    thanks

    Posted 12 years ago on Wednesday August 8, 2012 | Permalink
  4. Thanks for the update Alex. Cheers.

    Posted 12 years ago on Thursday August 9, 2012 | Permalink

This topic has been resolved and has been closed to new replies.