21 $this->label = esc_html__(
'Quiz Score',
'gk-gravityview' );
22 parent::__construct();
27 if(
'edit' === $context ) {
28 return $field_options;
32 'quiz_use_max_score' => array(
34 'label' => __(
'Show Max Score?',
'gk-gravityview' ),
35 'desc' => __(
'Display score as the a fraction: "[score]/[max score]". If unchecked, will display score.',
'gk-gravityview'),
37 'merge_tags' =>
false,
41 return $new_fields + $field_options;
Modify field settings by extending this class.
new GravityView_Field_Quiz_Score
field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id)
if(empty( $created_by)) $form_id
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed