includes/admin/register-settings.php 1 location
|
@@ 1203-1207 (lines=5) @@
|
| 1200 |
|
$chosen = ''; |
| 1201 |
|
} |
| 1202 |
|
|
| 1203 |
|
if( !empty( $args['onchange'] ) ) { |
| 1204 |
|
$onchange = ' onchange="' . esc_attr( $args['onchange'] ) . '"'; |
| 1205 |
|
} else { |
| 1206 |
|
$onchange = ''; |
| 1207 |
|
} |
| 1208 |
|
|
| 1209 |
|
$html = '<select id="wpinv_settings[' . $sanitize_id . ']" name="wpinv_settings[' . esc_attr( $args['id'] ) . ']" ' . $chosen . 'data-placeholder="' . esc_html( $placeholder ) . '"' . $onchange . ' />'; |
| 1210 |
|
|
includes/wpinv-template-functions.php 1 location
|
@@ 390-392 (lines=3) @@
|
| 387 |
|
} |
| 388 |
|
|
| 389 |
|
$options = ''; |
| 390 |
|
if( !empty( $args['onchange'] ) ) { |
| 391 |
|
$options .= ' onchange="' . esc_attr( $args['onchange'] ) . '"'; |
| 392 |
|
} |
| 393 |
|
|
| 394 |
|
if( !empty( $args['required'] ) ) { |
| 395 |
|
$options .= ' required="required"'; |