Hi, i’m wondering if is there any way to execute a php fu…
Hi, i’m wondering if is there any way to execute a php function only if the quiz is passed. I need to update a user custom meta field when any single quiz is passed.
This thread has been imported from harmonicdesign.ca/hd-quiz/
Hi Beniamino, there sure is!
I recommend taking a look at the Save Results Light addon for a real example.
Basically, use the hdq_submit action to queue up a function to run once a quiz has been submitted. HD Quiz will then call this function and send some basic data such as the quiz_ID and score
If you are enjoying HD Quiz please leave a review here on the official WordPress.org page. HD Quiz is developed by me, just some dude, and is supported and available for free. It may seem dumb, but truly nothing makes me happier than knowing that people are using and loving HD Quiz and my hard work.
This thread has either been marked as complete or has been automatically closed due to inactivity.