Skip to content

Commit

Permalink
Merge pull request #2433 from QuizandSurveyMaster/justhyre-full-full-…
Browse files Browse the repository at this point in the history
…11870

Add var "$quiz_options->quiz_id" to filter 'qsm_contact_text_field_va…
  • Loading branch information
zubairraeen authored Dec 29, 2023
2 parents 133f489 + 1700b8f commit fffa0ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions php/classes/class-qsm-contact-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public static function generate_contact_field( $field, $index, $quiz_options, $d
}
// Filer Value
if ( empty( $contact_disable_autofill ) ) {
$default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'] );
$default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'],$quiz_options );
$fieldAttr .= " value='" . esc_attr( $default_value ) . "' ";
} else {
$fieldAttr .= " autocomplete='off' ";
Expand Down Expand Up @@ -433,7 +433,7 @@ public static function generate_contact_field( $field, $index, $quiz_options, $d
case 'email':
// Filer Value
if ( empty( $contact_disable_autofill ) ) {
$default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'] );
$default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'],$quiz_options );
$fieldAttr .= " value='" . esc_attr( $default_value ) . "' ";
} else {
$fieldAttr .= " autocomplete='off' ";
Expand Down Expand Up @@ -461,7 +461,7 @@ public static function generate_contact_field( $field, $index, $quiz_options, $d
case 'date':
// Filer Value
if ( empty( $contact_disable_autofill ) ) {
$default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'] );
$default_value = apply_filters( 'qsm_contact_text_field_value', $default_value, $field['use'],$quiz_options );
$fieldAttr .= " value='" . esc_attr( $default_value ) . "' ";
} else {
$fieldAttr .= " autocomplete='off' ";
Expand Down

0 comments on commit fffa0ca

Please sign in to comment.