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.
Many thanks!
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
This thread has either been marked as complete or has been automatically closed due to inactivity. Please consider opening a new support thread for help.