includes/admin/register-settings.php 1 location
|
@@ 1157-1161 (lines=5) @@
|
| 1154 |
|
$chosen = ''; |
| 1155 |
|
} |
| 1156 |
|
|
| 1157 |
|
if( !empty( $args['onchange'] ) ) { |
| 1158 |
|
$onchange = ' onchange="' . esc_attr( $args['onchange'] ) . '"'; |
| 1159 |
|
} else { |
| 1160 |
|
$onchange = ''; |
| 1161 |
|
} |
| 1162 |
|
|
| 1163 |
|
$html = '<select id="wpinv_settings[' . $sanitize_id . ']" name="wpinv_settings[' . esc_attr( $args['id'] ) . ']" ' . $chosen . 'data-placeholder="' . esc_html( $placeholder ) . '"' . $onchange . ' />'; |
| 1164 |
|
|
includes/wpinv-template-functions.php 1 location
|
@@ 400-402 (lines=3) @@
|
| 397 |
|
} |
| 398 |
|
|
| 399 |
|
$options = ''; |
| 400 |
|
if( !empty( $args['onchange'] ) ) { |
| 401 |
|
$options .= ' onchange="' . esc_attr( $args['onchange'] ) . '"'; |
| 402 |
|
} |
| 403 |
|
|
| 404 |
|
if( !empty( $args['required'] ) ) { |
| 405 |
|
$options .= ' required="required"'; |