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"'; |
includes/admin/register-settings.php 1 location
|
@@ 1248-1252 (lines=5) @@
|
| 1245 |
|
$placeholder = ''; |
| 1246 |
|
} |
| 1247 |
|
|
| 1248 |
|
if( !empty( $args['onchange'] ) ) { |
| 1249 |
|
$onchange = ' onchange="' . esc_attr( $args['onchange'] ) . '"'; |
| 1250 |
|
} else { |
| 1251 |
|
$onchange = ''; |
| 1252 |
|
} |
| 1253 |
|
|
| 1254 |
|
$html = '<select id="wpinv_settings[' . $sanitize_id . ']" name="wpinv_settings[' . esc_attr( $args['id'] ) . ']" data-placeholder="' . esc_html( $placeholder ) . '"' . $onchange . ' />'; |
| 1255 |
|
|