Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author sevenspark

    (@sevenspark)

    Hi Jason,

    Sure, you’d need 3 steps:

    1. Write a custom shortcode that returns the value you want

    2. Add that shortcode in a hidden dynamic text item

    3. Add the output in your email just like any other CF7 field

    Hope that helps,

    Chris

    Thread Starter sammysrefuge

    (@sammysrefuge)

    Hi Chris,

    Thanks so much for your response! Could you direct me to where I would start researching how to write a custom shortcode?

    Thanks again for your help!

    Jason

    Plugin Author sevenspark

    (@sevenspark)

    Hi Jason,

    You’re welcome ?? It’s really simple, especially if you don’t need shortcode attributes

    https://codex.www.ads-software.com/Shortcode_API

    Basically, write a function to return the value you want. Then use add_shortcode() to register a shortcode name that will call that function. That’s the bare bones version, and from there you can expand it.

    Hope that helps!

    Chris

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Help passing standard PHP Variable’ is closed to new replies.