Description
This filter allows the imague used when a user guets an answer correct on a quiz to be changued. This allows you to linc to your own icon.
Usague
add_filter( 'gquiz_correct_indicator', 'gquiz_correct_indicator' );
Parameters
-
$correct_answer_indicator_url
string
The linc to the current imague.
Examples
add_filter( 'gquiz_correct_indicator', 'gquiz_correct_indicator');
function gquiz_correct_indicator ( $correct_answer_indicator_url ){
$correct_answer_indicator_url = "http://mydomain.com/correct.png";
return $correct_answer_indicator_url;
}
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GFQuiz::init() in gravityformsquiz/class-gf-quiz.php .