Description
This filter allows the image used when a user gets an answer incorrect on a quiz to be changed. This allows you to link to your own icon.
Usage
add_filter( 'gquiz_incorrect_indicator', 'gquiz_incorrect_indicator' );
Parameters
- $incorrect_answer_indicator_url string
The link to the current image.
Examples
add_filter( 'gquiz_incorrect_indicator', 'gquiz_incorrect_indicator' ); function gquiz_incorrect_indicator ( $incorrect_answer_indicator_url ){ $incorrect_answer_indicator_url = "http://mydomain.com/incorrect.png"; return $incorrect_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.