Site icon Hip-Hop Website Design and Development

woocommerce – adding wrapper around custom made woocommerce form fields

For woocommerce I made 2 custom fields in a function.

see example.

add_action( 'woocommerce_checkout_after_customer_details', 'woo_add_custom_check_boxes_on_checkout', 99 );

function woo_add_custom_check_boxes_on_checkout() {
woocommerce_form_field( 'woo_custom_checkbox_privacy_policy', array(
'type' => 'checkbox',
'class' => array(' m-0 p-0'),
'label_class' => array('woocommerce-form__label woocommerce-form__label-for-checkbox '),
'input_class' => array('woocommerce-form__input woocommerce-form__input-checkbox '),
'required' => true,
'label' => __('I accept the terms'), 
));
woocommerce_form_field( 'woo_custom_checkbox_privacy_policy2', array(
'type' => 'checkbox',
'class' => array(' m-0 p-0'),
'label_class' => array('woocommerce-form__label woocommerce-form__label-for-checkbox '),
'input_class' => array('woocommerce-form__input woocommerce-form__input-checkbox'),
'required' => true,
'label' => __('I accept the privacy policy.'), 
));
}

I want to put these 2 extra custom fields inside a wrapper.
A small search on google shows that there is no hook for woocommerce_form_field only the formfielod type?

Idea solution how to put 2 custom form fields inside a custom wrapper?

Thanks in advance!