Hi, i’m wondering if is there any way to execute a php fu…

closed

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/

May 13, 2022 at 6:58amBeniamino

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

13 May 2022 — 11:55support admin Dylan

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.