Add a data id for targeting media uploads
This commit is contained in:
@ -155,8 +155,8 @@ class CWV2_Settings {
|
||||
$label = isset( $options['label'] ) ? $options['label'] : __( 'Upload', 'content-warning-v2' );
|
||||
|
||||
?><fieldset>
|
||||
<input type="text" name="<?php echo $field_id; ?>" id="<?php echo $field_id; ?>" value="<?php echo $option_value; ?>" class="regular-text">
|
||||
<input type="button" class="button button-secondary" value="<?php echo $label; ?>">
|
||||
<input type="text" name="<?php echo $field_id; ?>" id="<?php echo $field_id; ?>" value="<?php echo $option_value; ?>" class="regular-text" />
|
||||
<input type="button" class="button button-secondary" value="<?php echo $label; ?>" data-target-id="<?php echo $field_id; ?>" />
|
||||
</fieldset><?php
|
||||
|
||||
if ( ! empty( $description ) ) {
|
||||
|
Reference in New Issue
Block a user