Add classed to Woo checkout optin to match other checkboxes
[MAILPOET-3498]
This commit is contained in:
committed by
Veljko V
parent
250b818be6
commit
1aef43cfc9
@@ -82,6 +82,8 @@ class Subscription {
|
|||||||
[
|
[
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'label' => $this->wp->escHtml($labelString),
|
'label' => $this->wp->escHtml($labelString),
|
||||||
|
'input_class' => ['woocommerce-form__input', 'woocommerce-form__input-checkbox', 'input-checkbox'],
|
||||||
|
'label_class' => ['woocommerce-form__label', 'woocommerce-form__label-for-checkbox', 'checkbox'],
|
||||||
'custom_attributes' => ['data-automation-id' => 'woo-commerce-subscription-opt-in'],
|
'custom_attributes' => ['data-automation-id' => 'woo-commerce-subscription-opt-in'],
|
||||||
'return' => true,
|
'return' => true,
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user