Class attribute added for Checkbox in settings
Noticed class attribute missed in checkbox of admin settings function, this class name will help for developer also, can you please consider this as my proposal?
This commit is contained in:
parent
38d0d0dcad
commit
4eef4bf846
|
@ -464,6 +464,7 @@ class WC_Admin_Settings {
|
||||||
name="<?php echo esc_attr( $value['id'] ); ?>"
|
name="<?php echo esc_attr( $value['id'] ); ?>"
|
||||||
id="<?php echo esc_attr( $value['id'] ); ?>"
|
id="<?php echo esc_attr( $value['id'] ); ?>"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
|
class="<?php echo esc_attr($value['class']); ?>"
|
||||||
value="1"
|
value="1"
|
||||||
<?php checked( $option_value, 'yes'); ?>
|
<?php checked( $option_value, 'yes'); ?>
|
||||||
<?php echo implode( ' ', $custom_attributes ); ?>
|
<?php echo implode( ' ', $custom_attributes ); ?>
|
||||||
|
|
Loading…
Reference in New Issue