includes/admin/register-settings.php 1 location
|
@@ 1094-1098 (lines=5) @@
|
1091 |
|
$chosen = ''; |
1092 |
|
} |
1093 |
|
|
1094 |
|
if( !empty( $args['onchange'] ) ) { |
1095 |
|
$onchange = ' onchange="' . esc_attr( $args['onchange'] ) . '"'; |
1096 |
|
} else { |
1097 |
|
$onchange = ''; |
1098 |
|
} |
1099 |
|
|
1100 |
|
$html = '<select id="wpinv_settings[' . $sanitize_id . ']" name="wpinv_settings[' . esc_attr( $args['id'] ) . ']" ' . $chosen . 'data-placeholder="' . esc_html( $placeholder ) . '"' . $onchange . ' />'; |
1101 |
|
|
includes/wpinv-template-functions.php 1 location
|
@@ 408-410 (lines=3) @@
|
405 |
|
} |
406 |
|
|
407 |
|
$options = ''; |
408 |
|
if( !empty( $args['onchange'] ) ) { |
409 |
|
$options .= ' onchange="' . esc_attr( $args['onchange'] ) . '"'; |
410 |
|
} |
411 |
|
|
412 |
|
if( !empty( $args['required'] ) ) { |
413 |
|
$options .= ' required="required"'; |