Hide quiz title text from results email body
Hi,
I am using HD Quiz with Save Results Pro.
I have changed the email subject line to “Your Quiz Result”, which works correctly.
However, in the email body there is still a big heading that shows the quiz name above the results table. For example:
NAVIGATION XYZ 123 Earth/directions/Compass
I do not want the quiz name to appear in the email body for my students. I only want a clean generic email that shows their score and result.
Is there any setting, filter hook, or template override that will let me remove or hide this quiz title from the email body?
If possible, please share a small code example that I can add to my theme functions or a snippet plugin.
OR
If possible, please include this as an option in a future plugin update so that we can hide the quiz title from the email body.
Thank you.
Hi narendra there are several filters that can be used to edit both the results from the admin area, as well as the emails.
These filters are:
- hdq_srp_results_heading
- hdq_srp_results_user
- hdq_srp_results_form
- hdq_srp_results_results
- hdq_srp_results_questions
In your case, you want to use hdq_srp_results_heading.
Something like this should work
What I’m doing is checking the “source” to see if it’s the expanded results (this is what I call it when in the admin area and you view the result). If it’s not expanded, it must be an email and we return an empty string.