Skip to content

Commit

Permalink
Replace $quiz_options->quiz_id to $quiz_options
Browse files Browse the repository at this point in the history
  • Loading branch information
krunalexpresstech committed Dec 29, 2023
1 parent c0fca5d commit 1700b8f
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'],$quiz_options->quiz_id );
$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'],$quiz_options->quiz_id );
$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'],$quiz_options->quiz_id );
$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 1700b8f

Please sign in to comment.