Skip to content

Commit

Permalink
Add selected field
Browse files Browse the repository at this point in the history
  • Loading branch information
omarkasem committed Aug 6, 2024
1 parent 9edd5b5 commit f687ce7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<?php if ( is_array( $choice['value'] ) ) { ?>
<optgroup label="<?php echo esc_attr( $choice['text'] ); ?>">
<?php foreach ( $choice['value'] as $subchoice ) : ?>
<option value="<?php echo esc_attr( $subchoice['value'] ); ?>"><?php echo esc_html( $subchoice['text'] ); ?></option>
<option value="<?php echo esc_attr( $subchoice['value'] ); ?>" <?php gv_selected( esc_attr( $subchoice['value'] ), esc_attr( $search_field['value'] ), true ); ?>><?php echo esc_html( $subchoice['text'] ); ?></option>
<?php endforeach; ?>
</optgroup>
<?php } else { ?>
Expand Down

0 comments on commit f687ce7

Please sign in to comment.