apply_filters( 'sensei_question_show_answers', $show_answers, $question_id, $quiz_id, $lesson_id, $user_id ) → {bool}
Allow dynamic overriding of whether to show question answers or not
Parameters:
Name | Type | Description |
---|---|---|
$show_answers |
bool | Whether to show the answer to the question. |
$question_id |
int | Question ID. |
$quiz_id |
int | Quiz ID. |
$lesson_id |
int | Lesson ID. |
$user_id |
int | User ID. |
- Since:
- 1.9.7
- Source:
Returns:
Whether to show the answer to the question.
- Type
- bool