33 add_filter(
'gravityview/common/get_form_fields', array( $this,
'add_form_fields' ), 10, 3 );
49 $quiz_fields = GFAPI::get_fields_by_type(
$form,
'quiz' );
51 if ( ! empty( $quiz_fields ) ) {
53 $fields[
'gquiz_score'] = array(
54 'label' => __(
'Quiz Score Total',
'gk-gravityview' ),
55 'type' =>
'quiz_score',
56 'desc' => __(
'Displays the number of correct Quiz answers the user submitted.',
'gk-gravityview' ),
57 'icon' =>
'dashicons-forms',
59 $fields[
'gquiz_percent'] = array(
60 'label' => __(
'Quiz Percentage Grade',
'gk-gravityview' ),
61 'type' =>
'quiz_percent',
62 'desc' => __(
'Displays the percentage of correct Quiz answers the user submitted.',
'gk-gravityview' ),
63 'icon' =>
'dashicons-forms',
65 $fields[
'gquiz_grade'] = array(
67 'label' => __(
'Quiz Letter Grade',
'gk-gravityview' ),
68 'type' =>
'quiz_grade',
69 'desc' => __(
'Displays the Grade the user achieved based on Letter Grading configured in the Quiz Settings.',
'gk-gravityview' ),
70 'icon' =>
'dashicons-forms',
72 $fields[
'gquiz_is_pass'] = array(
73 'label' => __(
'Quiz Pass/Fail',
'gk-gravityview' ),
74 'type' =>
'quiz_is_pass',
75 'desc' => __(
'Displays either Passed or Failed based on the Pass/Fail settings configured in the Quiz Settings.',
'gk-gravityview' ),
76 'icon' =>
'dashicons-forms',
if(gravityview() ->plugin->is_GF_25()) $form
Abstract class that makes it easy for plugins and themes to register no-conflict scripts and styles...