• Hi,

    I am trying to retrieve the image url or filename after the form gets submitted as I need to save it as an attachment for a post.

    I tried using the ‘wpcf7_mail_sent’ hook and echo out the form details such as the mail body to see the url, but it only shows <img src="[project-signature]"/>

    Is there any way to retrieve the file name or url so I can add this to my post or save the url as post_meta.

    • This topic was modified 6 years, 6 months ago by viragjacint.
    • This topic was modified 6 years, 6 months ago by viragjacint.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author tameroski

    (@tameroski)

    Hi,
    I’d rather have a look at CF7’s wpcf7_posted_data hook. I use it myself for modifying stuff before sending.

    
    function manage_signature_data ($posted_data) {
         foreach ($posted_data as $key => $data) {
         ...
         }
    }
    
    • This reply was modified 6 years, 6 months ago by tameroski.
    • This reply was modified 6 years, 6 months ago by tameroski.
    • This reply was modified 6 years, 6 months ago by tameroski.
    • This reply was modified 6 years, 6 months ago by tameroski.
    Thread Starter viragjacint

    (@viragjacint)

    Brilliant!!!! That returned exactly what I needed! Thank you so much! Love the plugin! Amazing effort getting back to me in such a short time!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Retrieve image url after form submit’ is closed to new replies.