Set default settings for quizes
Hey,
Love the plugin,
Since we create a lot of quizes that all have to have the same format and settings, I was wondering if there is a way to set a default setting for all quizes (and for new quizes of course). Same for the quiz fail and pass content.
I am comfortable with custom code
thank you for your work and I would appriciate an answer 🙂
Hi Daniel,
thanks for using HD Quiz! Please consider writing a review on WordPress.org 😉
I have a filter in HD Quiz called hdq_before_quiz_data. This can be used to filter the quiz data before the quiz itself prints to the page. We can use this to modify any quiz settings we want.
Just note that doing this will not modify the actual saved quiz settings or settings page, and instead intercepts that data just before the quiz prints to the page.
I recommend adding the following function to your site.
Since I don’t know what settings other than the fail/pass content, this function will print out all of the quiz data so that you can see it all. All you’d have to do is set whatever values you want and return them.
Thank you for the reply
Respond to thread
This thread has been closed / marked as resolved.
You can reply to this thread, but it might be better to start a new thread if you need help.
You can also upload images to imgur and paste the links here. Just make sure that your images don't include any sensitive information.
Submit