• Resolved Joe

    (@joecole1)


    Hello,

    Great plug-in, I’m really enjoying it!

    I run a woocommerce shop and am using your plug-in to run post-purchase surveys.

    After a survey, we send a coupon to the customer. I have messed around with the MySQL connection function, but because this is a post and post meta function, a simple MySQL query doesn’t work… I would need to tie in to the WordPress and woocommerce functions.

    Any chance of adding custom PHP function as a post-submit action?

    My next solution would be to use the current JavaScript functions, but that would lead to security issues where someone on the page could inspect the page and get the coupon without actually submitting the form.

    If not custom PHP on submit, maybe an area similar to the MySQL connection that allows us to execute WordPress functions after submit using the submitted data?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP function on submit’ is closed to new replies.