Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
Customize the scoring to determine if an answer is correct.
Formidable Forms is the best WordPress Form Builder plugin. Get it for free!
Usage
add_filter( 'frm_quiz_is_correct', 'frm_quiz_is_correct', 10, 2 ); function frm_quiz_is_correct( $is_correct, $args ) {
Parameters
- $is_correct (boolean) - True if the answer is correct.
- $args (array)
- $args['field'] (object) - The field to be checked.
- $args['entry'] (object) - The entry being scored.
- $args['value'] (array|string) - The response in the field.
- $args['saved_answers'] (array) - A list of correct answers.
Examples
There are currently no examples for this hook.