gquiz_correct_indicator

gquiz_correct_indicator

DescriptionUsageParametersExamplesPlacementSource Code

Description
This filter allows the image used when a user gets an answer correct on a quiz to be changed. This allows you to link to your own icon.
Usage
1add_filter( 'gquiz_correct_indicator', 'gquiz_correct_indicator' );

Parameters

$correct_answer_indicator_url string
The link to the current image.

Examples
12345add_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.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註