includes/admin/register-settings.php 1 location
|
@@ 1196-1200 (lines=5) @@
|
| 1193 |
|
$placeholder = ''; |
| 1194 |
|
} |
| 1195 |
|
|
| 1196 |
|
if( !empty( $args['onchange'] ) ) { |
| 1197 |
|
$onchange = ' onchange="' . esc_attr( $args['onchange'] ) . '"'; |
| 1198 |
|
} else { |
| 1199 |
|
$onchange = ''; |
| 1200 |
|
} |
| 1201 |
|
|
| 1202 |
|
$html = '<select id="wpinv_settings[' . $sanitize_id . ']" name="wpinv_settings[' . esc_attr( $args['id'] ) . ']" data-placeholder="' . esc_html( $placeholder ) . '"' . $onchange . ' />'; |
| 1203 |
|
|
includes/wpinv-template-functions.php 1 location
|
@@ 391-393 (lines=3) @@
|
| 388 |
|
} |
| 389 |
|
|
| 390 |
|
$options = ''; |
| 391 |
|
if( !empty( $args['onchange'] ) ) { |
| 392 |
|
$options .= ' onchange="' . esc_attr( $args['onchange'] ) . '"'; |
| 393 |
|
} |
| 394 |
|
|
| 395 |
|
if( !empty( $args['required'] ) ) { |
| 396 |
|
$options .= ' required="required"'; |