HD Quiz

Need to send invoices?
Check out my new WordPress plugin HDInvoice
Limited time launch sale

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

Published: May 13, 2022
Support status: 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/

thread author: Beniamino

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:55 support admin - Dylan

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.