Ive been trying to add a custom field in woocommerce backend where users can multiselect checkboxes for a certain level.
Is it possible to create multiple checkboxes? So far i have this:
woocommerce_wp_checkbox(
array(
'id' => '_custom_product_niveau_field',
'type' => 'checkbox',
'label' => __('Niveau', 'woocommerce'),
'options' => array(
'MBO' => __( 'MBO', 'woocommerce' ),
'HBO' => __( 'HBO', 'woocommerce' ),
'WO' => __( 'WO', 'woocommerce' )
)
)
But that doesnt work... Does woocommerce_wp_checkbox have support for this?
2021 Update
That is possible creating a custom function this way:
Code goes in function.php file of your active child theme (or active theme). Tested and works.
Usage example (for a simple product):
Code goes in function.php file of your active child theme (or active theme). Tested and works.