'WooCommerce Product Addons - append image to product addon field

I actually struggling with WooCommerce Product Addons plugin.

The result which I want is to give possibility that woocommerce product addon fields (checkboxes type) may have - some image(s) - gallery.

But I didn't find any tech documentation which can helps me to edit that functionality..

Is there anyone who can direct me?

I think that I have to do something with get_posted_product_addons() So in html-addon.php file I have this "syntax" in name attributes of inputs..:

<input type="file" class="button" id="wc-pao-addon-img-first-<?php echo esc_attr( $loop ); ?>" name="product_addon_img_first[<?php echo esc_attr( $loop ); ?>]" accept="image/*">

But I can't find where the plugin extract values from the form and passing them into DB (meta_key column in wp_postmeta table)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source