includes/admin/class-admin-settings.php 1 location
|
@@ 350-354 (lines=5) @@
|
| 347 |
|
// Custom attribute handling. |
| 348 |
|
$custom_attributes = array(); |
| 349 |
|
|
| 350 |
|
if ( ! empty( $value['attributes'] ) && is_array( $value['attributes'] ) ) { |
| 351 |
|
foreach ( $value['attributes'] as $attribute => $attribute_value ) { |
| 352 |
|
$custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $attribute_value ) . '"'; |
| 353 |
|
} |
| 354 |
|
} |
| 355 |
|
|
| 356 |
|
// Description handling. |
| 357 |
|
$description = self::get_field_description( $value ); |
includes/admin/give-metabox-functions.php 1 location
|
@@ 444-449 (lines=6) @@
|
| 441 |
|
// Custom attribute handling |
| 442 |
|
$custom_attributes = array(); |
| 443 |
|
|
| 444 |
|
if ( ! empty( $field['attributes'] ) && is_array( $field['attributes'] ) ) { |
| 445 |
|
|
| 446 |
|
foreach ( $field['attributes'] as $attribute => $value ) { |
| 447 |
|
$custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $value ) . '"'; |
| 448 |
|
} |
| 449 |
|
} |
| 450 |
|
?> |
| 451 |
|
|
| 452 |
|
<input |